[asterisk-addons-commits] tilghman: trunk r394 - /trunk/cdr_addon_mysql.c

asterisk-addons-commits at lists.digium.com asterisk-addons-commits at lists.digium.com
Sat Jun 9 07:24:52 MST 2007


Author: tilghman
Date: Sat Jun  9 09:24:51 2007
New Revision: 394

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=394
Log:
Issue 9928 - Incorrect logic for failure checking

Modified:
    trunk/cdr_addon_mysql.c

Modified: trunk/cdr_addon_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/cdr_addon_mysql.c?view=diff&rev=394&r1=393&r2=394
==============================================================================
--- trunk/cdr_addon_mysql.c (original)
+++ trunk/cdr_addon_mysql.c Sat Jun  9 09:24:51 2007
@@ -207,7 +207,7 @@
 		mysql_escape_string(userfielddata, cdr->userfield, strlen(cdr->userfield));
 
 	/* Check for all alloca failures above at once */
-	if ((!clid) || (!dcontext) || (!channel) || (!dstchannel) || (!lastapp) || (!lastdata) || (!uniqueid) || (loguniqueid && !uniqueid)) {
+	if ((!clid) || (!dcontext) || (!channel) || (!dstchannel) || (!lastapp) || (!lastdata) || (loguniqueid && !uniqueid)) {
 		ast_log(LOG_ERROR, "cdr_mysql:  Out of memory error (insert fails)\n");
 		ast_mutex_unlock(&mysql_lock);
 		return -1;



More information about the asterisk-addons-commits mailing list