[svn-commits] file: trunk r195089 - /trunk/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon May 18 08:36:23 CDT 2009


Author: file
Date: Mon May 18 08:36:17 2009
New Revision: 195089

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=195089
Log:
Fix a bug where specifying an empty outboundproxy would cause packets to get sent to ourself.

(closes issue #15106)
Reported by: timeshell

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=195089&r1=195088&r2=195089
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon May 18 08:36:17 2009
@@ -3097,6 +3097,11 @@
 static struct sip_proxy *proxy_allocate(char *name, char *port, int force)
 {
 	struct sip_proxy *proxy;
+
+	if (ast_strlen_zero(name)) {
+		return NULL;
+	}
+
 	proxy = ao2_alloc(sizeof(*proxy), NULL);
 	if (!proxy)
 		return NULL;




More information about the svn-commits mailing list