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);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to