[asterisk-commits] russell: trunk r174149 - in /trunk: ./ res/snmp/agent.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Feb 7 10:16:51 CST 2009


Author: russell
Date: Sat Feb  7 10:16:50 2009
New Revision: 174149

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=174149
Log:
Merged revisions 174148 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r174148 | russell | 2009-02-07 10:15:07 -0600 (Sat, 07 Feb 2009) | 2 lines

Fix a race condition that could cause a crash.

........

Modified:
    trunk/   (props changed)
    trunk/res/snmp/agent.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/res/snmp/agent.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/res/snmp/agent.c?view=diff&rev=174149&r1=174148&r2=174149
==============================================================================
--- trunk/res/snmp/agent.c (original)
+++ trunk/res/snmp/agent.c Sat Feb  7 10:16:50 2009
@@ -569,9 +569,9 @@
 	case ASTCHANTYPECHANNELS:
 		long_ret = 0;
 		for (chan = ast_channel_walk_locked(NULL); chan; chan = ast_channel_walk_locked(chan)) {
-			ast_channel_unlock(chan);
 			if (chan->tech == tech)
 				long_ret++;
+			ast_channel_unlock(chan);
 		}
 		return (u_char *)&long_ret;
 	default:




More information about the asterisk-commits mailing list