浏览代码

tls: proper match of config profile by server id

(cherry picked from commit 40f87b7e46714a114e7c98be7e677b20f1deb694)
Daniel-Constantin Mierla 5 年之前
父节点
当前提交
669266e775
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/tls/tls_domain.c

+ 1 - 1
src/modules/tls/tls_domain.c

@@ -1533,7 +1533,7 @@ tls_domain_t* tls_lookup_cfg(tls_domains_cfg_t* cfg, int type,
 				p->server_id.len, ZSW(p->server_id.s),
 				srvid->len, ZSW(srvid->s));
 			if(p->server_id.s && p->server_id.len==srvid->len
-					&& strncasecmp(p->server_name.s, srvid->s, srvid->len)==0) {
+					&& strncasecmp(p->server_id.s, srvid->s, srvid->len)==0) {
 				LM_DBG("TLS config found by server id\n");
 				return p;
 			}