[asterisk-commits] rmudgett: branch 1.6.2 r291110 - in /branches/1.6.2: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 11 13:34:24 CDT 2010


Author: rmudgett
Date: Mon Oct 11 13:34:22 2010
New Revision: 291110

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=291110
Log:
Merged revisions 291109 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r291109 | rmudgett | 2010-10-11 13:29:43 -0500 (Mon, 11 Oct 2010) | 1 line
  
  Add missing unlock to an exception condition in reload_config().
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/channels/chan_sip.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=291110&r1=291109&r2=291110
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Mon Oct 11 13:34:22 2010
@@ -21753,9 +21753,13 @@
 	return res;
 }
 
-/*! \brief Handle incoming SIP requests (methods) 
-\note	This is where all incoming requests go first   */
-/* called with p and p->owner locked */
+/*!
+ * \brief Handle incoming SIP requests (methods)
+ * \note
+ * This is where all incoming requests go first.
+ * \note
+ * called with p and p->owner locked
+ */
 static int handle_incoming(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
@@ -25207,6 +25211,7 @@
 		if (sipsock < 0) {
 			ast_log(LOG_WARNING, "Unable to create SIP socket: %s\n", strerror(errno));
 			ast_config_destroy(cfg);
+			ast_mutex_unlock(&netlock);
 			return -1;
 		} else {
 			/* Allow SIP clients on the same host to access us: */




More information about the asterisk-commits mailing list