[Asterisk-cvs] asterisk pbx.c,1.239,1.240

markster at lists.digium.com markster at lists.digium.com
Sun May 8 12:48:32 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv24033

Modified Files:
	pbx.c 
Log Message:
Fix double unlock of hintlock (bug #4205)


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.239
retrieving revision 1.240
diff -u -d -r1.239 -r1.240
--- pbx.c	5 May 2005 15:07:48 -0000	1.239
+++ pbx.c	8 May 2005 16:54:53 -0000	1.240
@@ -1919,11 +1919,12 @@
 			if (cblist->callback == callback) {
 				cblist->data = data;
 				ast_mutex_unlock(&hintlock);
+				return 0;
 			}
 			cblist = cblist->next;
 		}
 	
-		/* Now inserts the callback */
+		/* Now insert the callback */
 		cblist = malloc(sizeof(struct ast_state_cb));
 		if (!cblist) {
 			ast_mutex_unlock(&hintlock);




More information about the svn-commits mailing list