projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a007eb1
)
Fix a bug where specifying an empty outboundproxy would cause packets to get sent...
author
Joshua Colp
<jcolp@digium.com>
Mon, 18 May 2009 13:36:17 +0000
(13:36 +0000)
committer
Joshua Colp
<jcolp@digium.com>
Mon, 18 May 2009 13:36:17 +0000
(13:36 +0000)
(closes issue #15106)
Reported by: timeshell
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@195089
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
4e3591e
..
fd30dfd
100644
(file)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-3097,6
+3097,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;