[asterisk-commits] tilghman: branch 1.4 r93949 - /branches/1.4/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 19 11:04:14 CST 2007


Author: tilghman
Date: Wed Dec 19 11:04:13 2007
New Revision: 93949

URL: http://svn.digium.com/view/asterisk?view=rev&rev=93949
Log:
Avoid segfault in chan_iax when peer isn't defined
(Closes issue #11602)

Modified:
    branches/1.4/channels/chan_iax2.c

Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=93949&r1=93948&r2=93949
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Wed Dec 19 11:04:13 2007
@@ -2696,7 +2696,7 @@
 			}
 		}
 	}
-	if (!var) { /* Last ditch effort */
+	if (!var && peername) { /* Last ditch effort */
 		var = ast_load_realtime("iaxpeers", "name", peername, NULL);
 		/*!\note
 		 * If this one loaded something, then we need to ensure that the host




More information about the asterisk-commits mailing list