From: Joshua Colp Date: Mon, 18 May 2009 13:38:19 +0000 (+0000) Subject: Merged revisions 195089 via svnmerge from X-Git-Tag: 1.6.1.3-rc1~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d2da8cec8ab7ad2652f21fe53317511271f6415;p=thirdparty%2Fasterisk.git Merged revisions 195089 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r195089 | file | 2009-05-18 10:36:17 -0300 (Mon, 18 May 2009) | 5 lines Fix a bug where specifying an empty outboundproxy would cause packets to get sent to ourself. (closes issue #15106) Reported by: timeshell ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@195091 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1895d23cae..ead6e124ca 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2667,6 +2667,11 @@ static int proxy_update(struct sip_proxy *proxy) 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;