[asterisk-commits] russell: branch 1.6.1 r174154 - in /branches/1.6.1: ./ res/snmp/agent.c

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


Author: russell
Date: Sat Feb  7 10:18:02 2009
New Revision: 174154

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

................
r174149 | russell | 2009-02-07 10:16:50 -0600 (Sat, 07 Feb 2009) | 10 lines

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:
    branches/1.6.1/   (props changed)
    branches/1.6.1/res/snmp/agent.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/res/snmp/agent.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/res/snmp/agent.c?view=diff&rev=174154&r1=174153&r2=174154
==============================================================================
--- branches/1.6.1/res/snmp/agent.c (original)
+++ branches/1.6.1/res/snmp/agent.c Sat Feb  7 10:18:02 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