aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-31 23:16:27 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-31 23:16:27 +0000
commit4864d10b1d48bad42732f5e14be4db7a5079969c (patch)
tree62ba2e615fdcd6401c052dbffb71a610361ce5e7 /channels/chan_iax2.c
parentacab2b46a3cdf1efdff48a447f9d7beacceea2c1 (diff)
allow netsock objects to be unref'd so they can disappear when needed (issue #5454)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6913 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rwxr-xr-xchannels/chan_iax2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 2ff97ca2b..e4695d82a 100755
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -8640,6 +8640,7 @@ static int set_config(char *config_file, int reload)
}
if (defaultsockfd < 0)
defaultsockfd = ast_netsock_sockfd(ns);
+ ast_netsock_unref(ns);
}
}
} else if (!strcasecmp(v->name, "authdebug"))
@@ -9568,6 +9569,7 @@ int load_module(void)
if (option_verbose > 1)
ast_verbose(VERBOSE_PREFIX_2 "Binding IAX2 to default address 0.0.0.0:%d\n", IAX_DEFAULT_PORTNO);
defaultsockfd = ast_netsock_sockfd(ns);
+ ast_netsock_unref(ns);
}
}