We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
sname = sip.example.com
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.
sip.example.com"[4]
The text was updated successfully, but these errors were encountered:
tls: proper dot position for matching subdomains
16beec2
- reported by GH #2049
Thanks @laszlovl for report and pointers to the issue. I pushed a fix to master (commit references above) and I will backport soon.
Sorry, something went wrong.
80bb3b9
- reported by GH #2049 (cherry picked from commit 16beec2)
No branches or pull requests
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
andp->server_name = example.com
.sip.example.com"[4]
is "e", not "." so the if clause will always fail and subdomains will never be matched.The text was updated successfully, but these errors were encountered: