diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-05 17:21:05 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-05 17:21:05 +0000 |
commit | eb61f174cd11d0acf999e823c560065a84a54057 (patch) | |
tree | 32581e396310d683c9a71de8539fc6d6a97d6f99 /channels | |
parent | a67b783299d998d9e3975144f9be1e3082483785 (diff) |
Merged revisions 88585 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
(closes issue #11163)
........
r88585 | qwell | 2007-11-05 11:19:41 -0600 (Mon, 05 Nov 2007) | 4 lines
Make sure we destroy the config structure on configuration failure.
Issue 11163, patch by eliel.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88586 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1b1369343..257102eda 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18329,6 +18329,7 @@ static int reload_config(enum channelreloadreason reason) internip = bindaddr; if (ast_find_ourip(&internip.sin_addr, bindaddr)) { ast_log(LOG_WARNING, "Unable to get own IP address, SIP disabled\n"); + ast_config_destroy(cfg); return 0; } ast_mutex_lock(&netlock); @@ -18340,6 +18341,7 @@ static int reload_config(enum channelreloadreason reason) sipsock = socket(AF_INET, SOCK_DGRAM, 0); if (sipsock < 0) { ast_log(LOG_WARNING, "Unable to create SIP socket: %s\n", strerror(errno)); + ast_config_destroy(cfg); return -1; } else { /* Allow SIP clients on the same host to access us: */ |