[svn-commits] tilghman: trunk r273142 - /trunk/main/config.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 29 20:01:18 CDT 2010


Author: tilghman
Date: Tue Jun 29 20:01:14 2010
New Revision: 273142

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273142
Log:
Don't attempt to proceed if our internal parser indicates an invalid file.

(closes issue #17560)
 Reported by: Nick_Lewis

Modified:
    trunk/main/config.c

Modified: trunk/main/config.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/config.c?view=diff&rev=273142&r1=273141&r2=273142
==============================================================================
--- trunk/main/config.c (original)
+++ trunk/main/config.c Tue Jun 29 20:01:14 2010
@@ -1902,7 +1902,9 @@
 	configtmp = ast_config_new();
 	configtmp->max_include_level = 1;
 	config = ast_config_internal_load(extconfig_conf, configtmp, flags, "", "extconfig");
-	if (!config) {
+	if (config == CONFIG_STATUS_FILEINVALID) {
+		return -1;
+	} else if (!config) {
 		ast_config_destroy(configtmp);
 		return 0;
 	}




More information about the svn-commits mailing list