[Asterisk-cvs] asterisk pbx.c,1.154.2.8,1.154.2.9

russell at lists.digium.com russell at lists.digium.com
Tue May 10 23:01:32 CDT 2005


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

Modified Files:
      Tag: v1-0
	pbx.c 
Log Message:
only unlock hintlock once (bug #4205)


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.154.2.8
retrieving revision 1.154.2.9
diff -u -d -r1.154.2.8 -r1.154.2.9
--- pbx.c	15 Apr 2005 07:15:39 -0000	1.154.2.8
+++ pbx.c	11 May 2005 03:07:39 -0000	1.154.2.9
@@ -1515,11 +1515,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