mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-28 00:10:25 -07:00
We need to make sure to null-terminate the "name"
portion of SIP URI parameters so that there are no bogus comparisons. Thanks to bbryant for pointing this out. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@133572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -13827,6 +13827,7 @@ static int sip_uri_params_cmp(const char *input1, const char *input2)
|
||||
if (!value2) {
|
||||
goto fail;
|
||||
}
|
||||
*value2++ = '\0';
|
||||
if (!strcasecmp(name1, name2)) {
|
||||
if (strcasecmp(value1, value2)) {
|
||||
goto fail;
|
||||
@@ -13881,6 +13882,7 @@ static int sip_uri_params_cmp(const char *input1, const char *input2)
|
||||
if (!value2) {
|
||||
goto fail;
|
||||
}
|
||||
*value2++ = '\0';
|
||||
if ((!strcasecmp(name2, "maddr") && !maddrmatch) ||
|
||||
(!strcasecmp(name2, "ttl") && !ttlmatch) ||
|
||||
(!strcasecmp(name2, "user") && !usermatch) ||
|
||||
|
||||
Reference in New Issue
Block a user