Concerns the following code: https://github.com/kamailio/kamailio/blob/master/src/modules/tls/tls_domain.c#L1567

Let's say sname = sip.example.com and p->server_name = example.com.

dotpos = sname->len - p->server_name.len;
> dotpos = len("sip.example.com") - len("example.com")
> dotpos = 15 - 11 = 4

if (sname->s[dotpos] == '.')
> if ("sip.example.com"[4] == '.')

sip.example.com"[4] is "e", not "." so the if clause will always fail and subdomains will never be matched.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.