[asterisk-commits] branch 1.2 r23951 - /branches/1.2/pbx.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 1 08:12:33 MST 2006


Author: russell
Date: Mon May  1 10:12:32 2006
New Revision: 23951

URL: http://svn.digium.com/view/asterisk?rev=23951&view=rev
Log:
add missing locking of the dialplan functions list in the "show functions"
CLI command

Modified:
    branches/1.2/pbx.c

Modified: branches/1.2/pbx.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/pbx.c?rev=23951&r1=23950&r2=23951&view=diff
==============================================================================
--- branches/1.2/pbx.c (original)
+++ branches/1.2/pbx.c Mon May  1 10:12:32 2006
@@ -1172,10 +1172,12 @@
 	int count_acf = 0;
 
 	ast_cli(fd, "Installed Custom Functions:\n--------------------------------------------------------------------------------\n");
+	ast_mutex_lock(&acflock);
 	for (acf = acf_root ; acf; acf = acf->next) {
 		ast_cli(fd, "%-20.20s  %-35.35s  %s\n", acf->name, acf->syntax, acf->synopsis);
 		count_acf++;
 	}
+	ast_mutex_unlock(&acflock);
 	ast_cli(fd, "%d custom functions installed.\n", count_acf);
 	return 0;
 }



More information about the asterisk-commits mailing list