aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-13 19:15:12 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-13 19:15:12 +0000
commit0b844dd6022bc6da0c383ef75ee25f3904ee388d (patch)
treeddd20909d69af21dba7523b1218cb34c2ef88895 /main
parent111ea850a85b25af5b0bdb2dc5ebba8f20dacebf (diff)
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
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47576 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/config.c b/main/config.c
index ccbc0c330..cf520a1c0 100644
--- a/main/config.c
+++ b/main/config.c
@@ -905,7 +905,7 @@ static struct ast_config *config_text_file_load(const char *database, const char
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 */
}