[asterisk-commits] murf: branch 1.4 r47576 -
/branches/1.4/main/config.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Nov 13 12:15:13 MST 2006
Author: murf
Date: Mon Nov 13 13:15:12 2006
New Revision: 47576
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47576
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:
branches/1.4/main/config.c
Modified: branches/1.4/main/config.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/config.c?view=diff&rev=47576&r1=47575&r2=47576
==============================================================================
--- branches/1.4/main/config.c (original)
+++ branches/1.4/main/config.c Mon Nov 13 13:15:12 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