[asterisk-commits] mmichelson: trunk r133573 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 25 09:40:52 CDT 2008
Author: mmichelson
Date: Fri Jul 25 09:40:52 2008
New Revision: 133573
URL: http://svn.digium.com/view/asterisk?view=rev&rev=133573
Log:
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.
........
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=133573&r1=133572&r2=133573
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jul 25 09:40:52 2008
@@ -16805,6 +16805,7 @@
if (!value2) {
goto fail;
}
+ *value2++ = '\0';
if (!strcasecmp(name1, name2)) {
if (strcasecmp(value1, value2)) {
goto fail;
@@ -16859,6 +16860,7 @@
if (!value2) {
goto fail;
}
+ *value2++ = '\0';
if ((!strcasecmp(name2, "maddr") && !maddrmatch) ||
(!strcasecmp(name2, "ttl") && !ttlmatch) ||
(!strcasecmp(name2, "user") && !usermatch) ||
More information about the asterisk-commits
mailing list