[asterisk-commits] mnicholson: branch 10 r329992 - in /branches/10: ./ res/res_fax.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 28 10:28:24 CDT 2011


Author: mnicholson
Date: Thu Jul 28 10:28:21 2011
New Revision: 329992

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=329992
Log:
Merged revisions 329991 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r329991 | mnicholson | 2011-07-28 10:26:56 -0500 (Thu, 28 Jul 2011) | 6 lines
  
  check for CONFIG_STATUS_FILE_INVALID when loading the res_fax config file
  
  Patch by: tzafrir
  Reported by: tzafrir
  (closes issue ASTERISK-18161)
........

Modified:
    branches/10/   (props changed)
    branches/10/res/res_fax.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/res/res_fax.c?view=diff&rev=329992&r1=329991&r2=329992
==============================================================================
--- branches/10/res/res_fax.c (original)
+++ branches/10/res/res_fax.c Thu Jul 28 10:28:21 2011
@@ -3353,6 +3353,12 @@
 		ast_log(LOG_NOTICE, "Configuration file '%s' not found, using default options.\n", config_file);
 		return 0;
 	}
+
+	if (cfg == CONFIG_STATUS_FILEINVALID) {
+		ast_log(LOG_NOTICE, "Configuration file '%s' is invalid, using default options.\n", config_file);
+		return 0;
+	}
+
 	if (cfg == CONFIG_STATUS_FILEUNCHANGED) {
 		ast_clear_flag(&config_flags, CONFIG_FLAG_FILEUNCHANGED);
 		cfg = ast_config_load2(config_file, "res_fax", config_flags);




More information about the asterisk-commits mailing list