[asterisk-commits] tilghman: branch 1.2 r93675 - /branches/1.2/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 18 12:44:41 CST 2007


Author: tilghman
Date: Tue Dec 18 12:44:41 2007
New Revision: 93675

URL: http://svn.digium.com/view/asterisk?view=rev&rev=93675
Log:
Oops, missed this one case

Modified:
    branches/1.2/channels/chan_iax2.c

Modified: branches/1.2/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_iax2.c?view=diff&rev=93675&r1=93674&r2=93675
==============================================================================
--- branches/1.2/channels/chan_iax2.c (original)
+++ branches/1.2/channels/chan_iax2.c Tue Dec 18 12:44:41 2007
@@ -2631,7 +2631,7 @@
 		var = ast_load_realtime("iaxpeers", "name", peername, "host", "dynamic", NULL);
 		if (!var)
 			var = ast_load_realtime("iaxpeers", "name", peername, "host", ast_inet_ntoa(iabuf, sizeof(iabuf), sin->sin_addr));
-	} else {
+	} else if (sin) {
 		char porta[25];
 		ast_inet_ntoa(iabuf, sizeof(iabuf), sin->sin_addr);
 		sprintf(porta, "%d", ntohs(sin->sin_port));




More information about the asterisk-commits mailing list