aboutsummaryrefslogtreecommitdiffstats
path: root/main/config.c
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-13 19:15:45 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-13 19:15:45 +0000
commit6e9131d2e7ea1c3cd27ee4ecbccc57643347eadc (patch)
treed2a1c3e157dbfc8f86b9d57a9a1c45a9888cb66e /main/config.c
parent2ebbeceba30119df431009adfedfdabfdfa411f2 (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/trunk@47577 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/config.c')
-rw-r--r--main/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/config.c b/main/config.c
index f1bcd1896..8cd1194e8 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 */
}