Module: kamailio
Branch: master
Commit: 40f87b7e46714a114e7c98be7e677b20f1deb694
URL:
https://github.com/kamailio/kamailio/commit/40f87b7e46714a114e7c98be7e677b2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-21T17:20:19+01:00
tls: proper match of config profile by server id
---
Modified: src/modules/tls/tls_domain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/40f87b7e46714a114e7c98be7e677b2…
Patch:
https://github.com/kamailio/kamailio/commit/40f87b7e46714a114e7c98be7e677b2…
---
diff --git a/src/modules/tls/tls_domain.c b/src/modules/tls/tls_domain.c
index 3bfe0b8f99..3932141f0e 100644
--- a/src/modules/tls/tls_domain.c
+++ b/src/modules/tls/tls_domain.c
@@ -1543,7 +1543,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;
}