aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-25 14:40:52 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-25 14:40:52 +0000
commit950e57ddd002dde8d0da1bf84b9fb3b8ff65d85b (patch)
tree901fc0d3739e44f01d0a1abc8c7443c1fda345c9
parentcec5eb8996a1cfbceb5bfdaacc30557edb0d6258 (diff)
Merged revisions 133572 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r133572 | mmichelson | 2008-07-25 09:40:10 -0500 (Fri, 25 Jul 2008) | 7 lines 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: http://svn.digium.com/svn/asterisk/trunk@133573 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 55d5d97af..89cf846cf 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -16805,6 +16805,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;
@@ -16859,6 +16860,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) ||