[asterisk-commits] russell: branch 1.4 r114608 - /branches/1.4/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 24 10:55:21 CDT 2008


Author: russell
Date: Thu Apr 24 10:55:21 2008
New Revision: 114608

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114608
Log:
Fix a silly mistake in a change I made yesterday that caused chan_iax2 to blow
up very quickly.
(issue #12515)

Modified:
    branches/1.4/channels/chan_iax2.c

Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=114608&r1=114607&r2=114608
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Thu Apr 24 10:55:21 2008
@@ -1353,7 +1353,7 @@
 					res = x;
 				}
 			}
-			if (res && !return_locked)
+			if (!res || (res && !return_locked))
 				ast_mutex_unlock(&iaxsl[x]);
 		}
 		for (x=TRUNK_CALL_START;(res < 1) && (x<maxtrunkcall);x++) {
@@ -1364,7 +1364,7 @@
 					res = x;
 				}
 			}
-			if (res && !return_locked)
+			if (!res || (res && !return_locked))
 				ast_mutex_unlock(&iaxsl[x]);
 		}
 	}




More information about the asterisk-commits mailing list