From: Joshua Colp Date: Thu, 26 Apr 2007 01:25:03 +0000 (+0000) Subject: Don't count failed include attempts against the configuration include level. (issue... X-Git-Tag: 1.2.19~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897b4c0ca319cf95d725150d4939e74a7f9c1ac8;p=thirdparty%2Fasterisk.git Don't count failed include attempts against the configuration include level. (issue #9593 reported by mostyn) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61958 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/config.c b/config.c index 75b3f6ee71..89c5c499dd 100644 --- a/config.c +++ b/config.c @@ -966,6 +966,8 @@ struct ast_config *ast_config_internal_load(const char *filename, struct ast_con if (result) result->include_level--; + else + cfg->include_level--; return result; }