[svn-commits] bbryant: branch 1.8 r311612 - /branches/1.8/channels/sip/reqresp_parser.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Mar 23 16:45:51 CDT 2011
Author: bbryant
Date: Wed Mar 23 16:45:46 2011
New Revision: 311612
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=311612
Log:
Fix a possible crash in sip/reqresp_parser.c that is caused by a possible null
value.
(closes issue #18821)
Reported by: cmaj
Patches:
patch-reqresp_parser_sip_uri_domain_cmp_c_locale-crash-1.8.3-rc2.diff.tx
uploaded by cmaj (license 830)
Modified:
branches/1.8/channels/sip/reqresp_parser.c
Modified: branches/1.8/channels/sip/reqresp_parser.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/sip/reqresp_parser.c?view=diff&rev=311612&r1=311611&r2=311612
==============================================================================
--- branches/1.8/channels/sip/reqresp_parser.c (original)
+++ branches/1.8/channels/sip/reqresp_parser.c Wed Mar 23 16:45:46 2011
@@ -2009,7 +2009,11 @@
*/
if (!addr1_parsed) {
#ifdef HAVE_XLOCALE_H
- return strcasecmp_l(host1, host2, c_locale);
+ if(!c_locale) {
+ return strcasecmp(host1, host2);
+ } else {
+ return strcasecmp_l(host1, host2, c_locale);
+ }
#else
return strcasecmp(host1, host2);
#endif
More information about the svn-commits
mailing list