[asterisk-commits] file: trunk r50677 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 12 20:37:11 MST 2007


Author: file
Date: Fri Jan 12 21:37:10 2007
New Revision: 50677

URL: http://svn.digium.com/view/asterisk?view=rev&rev=50677
Log:
Ensure error variable is set to 0 or else we might get false error messages. (issue #8798 reported by tootai, fix by anthonyl)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=50677&r1=50676&r2=50677
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jan 12 21:37:10 2007
@@ -16458,7 +16458,7 @@
 			}
 		} else if (!strcasecmp(v->name, "localnet")) {
 			struct ast_ha *na;
-			int ha_error;
+			int ha_error = 0;
 
 			if (!(na = ast_append_ha("d", v->value, localaddr, &ha_error)))
 				ast_log(LOG_WARNING, "Invalid localnet value: %s\n", v->value);



More information about the asterisk-commits mailing list