aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-18 13:39:17 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-18 13:39:17 +0000
commita459eef0fe1b5acb9df206670e9ba57850533dde (patch)
treedd91051321855b5db7abe942593d97057bd87db5
parent74723ffa75da673d78b5b3c5cf8e87097d13dcd7 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@195092 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 704f29d5f..8e4fd7ac6 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3045,6 +3045,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;