Add missing unlock to an exception condition in reload_config().

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@291109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Richard Mudgett 15 years ago
parent ab95a82f60
commit 85ef0289ca

@ -16740,9 +16740,13 @@ static int handle_request_register(struct sip_pvt *p, struct sip_request *req, s
return res; return res;
} }
/*! \brief Handle incoming SIP requests (methods) /*!
\note This is where all incoming requests go first */ * \brief Handle incoming SIP requests (methods)
/* called with p and p->owner locked */ * \note
* This is where all incoming requests go first.
* \note
* called with p and p->owner locked
*/
static int handle_request(struct sip_pvt *p, struct sip_request *req, struct sockaddr_in *sin, int *recount, int *nounlock) static int handle_request(struct sip_pvt *p, struct sip_request *req, struct sockaddr_in *sin, int *recount, int *nounlock)
{ {
/* Called with p->lock held, as well as p->owner->lock if appropriate, keeping things /* Called with p->lock held, as well as p->owner->lock if appropriate, keeping things
@ -19167,6 +19171,7 @@ static int reload_config(enum channelreloadreason reason)
if (sipsock < 0) { if (sipsock < 0) {
ast_log(LOG_WARNING, "Unable to create SIP socket: %s\n", strerror(errno)); ast_log(LOG_WARNING, "Unable to create SIP socket: %s\n", strerror(errno));
ast_config_destroy(cfg); ast_config_destroy(cfg);
ast_mutex_unlock(&netlock);
return -1; return -1;
} else { } else {
/* Allow SIP clients on the same host to access us: */ /* Allow SIP clients on the same host to access us: */

Loading…
Cancel
Save