Module: kamailio
Branch: 5.3
Commit: 704606ac1be5c967b2fd4c344d41145b1ad5adf2
URL:
https://github.com/kamailio/kamailio/commit/704606ac1be5c967b2fd4c344d41145…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-22T09:44:11+01:00
tls: proper match of config profile by server id
(cherry picked from commit 40f87b7e46714a114e7c98be7e677b20f1deb694)
---
Modified: src/modules/tls/tls_domain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/704606ac1be5c967b2fd4c344d41145…
Patch:
https://github.com/kamailio/kamailio/commit/704606ac1be5c967b2fd4c344d41145…
---
diff --git a/src/modules/tls/tls_domain.c b/src/modules/tls/tls_domain.c
index 3513b12622..ad59eed669 100644
--- a/src/modules/tls/tls_domain.c
+++ b/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;
}