Module: kamailio
Branch: 5.2
Commit: 669266e775197760644c56be73a632db365f3d97
URL:
https://github.com/kamailio/kamailio/commit/669266e775197760644c56be73a632d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-01-22T23:03:37+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/669266e775197760644c56be73a632d…
Patch:
https://github.com/kamailio/kamailio/commit/669266e775197760644c56be73a632d…
---
diff --git a/src/modules/tls/tls_domain.c b/src/modules/tls/tls_domain.c
index 1ca62ff200..8de30c4a81 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;
}