diff options
author | Corey Farrell <git@cfware.com> | 2015-05-12 02:31:58 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2015-05-12 09:37:09 -0500 |
commit | 3cdb7950f05dbfe0b180a778c48f99f97345958c (patch) | |
tree | 47f5da831ecf4434e649a8957f15192524142a74 /main/asterisk.c | |
parent | 8523a5ed099bc3d2a99dc232e23a877f32fc6453 (diff) |
Fix processing of asterisk.conf debug=yes.
The code which reads asterisk.conf supports processing the debug
option with ast_true, but ast_true returns -1. This causes debug
to still be off, convert to 1 so debug will be on as requested.
ASTERISK-25042
Reported by: Corey Farrell
Change-Id: I3c898b7d082d914b057e111b9357fde46bad9ed6
Diffstat (limited to 'main/asterisk.c')
-rw-r--r-- | main/asterisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index 137ee9315..a9c6d0fa8 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -3593,7 +3593,7 @@ static void ast_readconfig(void) } else if (!strcasecmp(v->name, "debug")) { option_debug = 0; if (sscanf(v->value, "%30d", &option_debug) != 1) { - option_debug = ast_true(v->value); + option_debug = ast_true(v->value) ? 1 : 0; } #if HAVE_WORKING_FORK /* Disable forking (-f at startup) */ |