Browse code

tls: proper match of config profile by server id

Daniel-Constantin Mierla authored on 21/01/2020 16:20:19
Showing 1 changed files
... ...
@@ -1543,7 +1543,7 @@ tls_domain_t* tls_lookup_cfg(tls_domains_cfg_t* cfg, int type,
1543 1543
 				p->server_id.len, ZSW(p->server_id.s),
1544 1544
 				srvid->len, ZSW(srvid->s));
1545 1545
 			if(p->server_id.s && p->server_id.len==srvid->len
1546
-					&& strncasecmp(p->server_name.s, srvid->s, srvid->len)==0) {
1546
+					&& strncasecmp(p->server_id.s, srvid->s, srvid->len)==0) {
1547 1547
 				LM_DBG("TLS config found by server id\n");
1548 1548
 				return p;
1549 1549
 			}