[asterisk-commits] murf: trunk r47577 - /trunk/main/config.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Nov 13 12:15:46 MST 2006


Author: murf
Date: Mon Nov 13 13:15:45 2006
New Revision: 47577

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47577
Log:
This solves bug 8342, whereby a crash occurs under certain circumstances while reading a config file with comments-- a call to CB_ADD shouldn't happen if withcomments is zero

Modified:
    trunk/main/config.c

Modified: trunk/main/config.c
URL: http://svn.digium.com/view/asterisk/trunk/main/config.c?view=diff&rev=47577&r1=47576&r2=47577
==============================================================================
--- trunk/main/config.c (original)
+++ trunk/main/config.c Mon Nov 13 13:15:45 2006
@@ -905,7 +905,7 @@
 							new_buf = comment_p + 1;
 					}
 				}
-				if( comment && !process_buf )
+				if( withcomments && comment && !process_buf )
 				{
 					CB_ADD(buf);  /* the whole line is a comment, store it */
 				}



More information about the asterisk-commits mailing list