[Freeswitch-svn] [commit] r10661 - freeswitch/trunk/src/mod/xml_int/mod_xml_cdr
FreeSWITCH SVN
mikej at freeswitch.org
Mon Dec 8 10:04:34 PST 2008
Author: mikej
Date: Mon Dec 8 13:04:34 2008
New Revision: 10661
Log:
assert bounds checking
Modified:
freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c
Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c (original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c Mon Dec 8 13:04:34 2008
@@ -204,6 +204,7 @@
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Got error [%ld] posting to web server [%s]\n",
httpRes, globals.urls[globals.url_index]);
globals.url_index++;
+ switch_assert(globals.url_count <= MAX_URLS);
if (globals.url_index >= globals.url_count) {
globals.url_index = 0;
}
More information about the Freeswitch-svn
mailing list