[Asterisk-cvs] asterisk-addons/asterisk-ooh323c/src chan_h323.c, 1.20, 1.21

vphirke vphirke
Fri Nov 25 15:05:32 CST 2005


Update of /usr/cvsroot/asterisk-addons/asterisk-ooh323c/src
In directory mongoose.digium.com:/tmp/cvs-serv27002/src

Modified Files:
	chan_h323.c 
Log Message:
ooh323_dextroy() update

Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/asterisk-ooh323c/src/chan_h323.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- chan_h323.c	25 Nov 2005 18:41:11 -0000	1.20
+++ chan_h323.c	25 Nov 2005 19:54:09 -0000	1.21
@@ -2507,7 +2507,6 @@
 {
   /* NOTE: Assumes iflock already acquired */
    struct ooh323_pvt *prev=NULL,*cur = NULL;
-   ast_mutex_unlock(&p->lock);
 
    cur = iflist;
 
@@ -2529,6 +2528,7 @@
 
    if(cur)
    {
+      ast_mutex_lock(&cur->lock);
       if(prev)
          prev->next = cur->next;
       else
@@ -2571,9 +2571,6 @@
 
       free(cur);
    }
-   else {
-      ast_mutex_unlock(&p->lock);
-   }
 
    if(gH323Debug)
       ast_verbose("+++   ooh323_destroy\n");




More information about the svn-commits mailing list