diff options
Diffstat (limited to 'res/res_http_post.c')
-rw-r--r-- | res/res_http_post.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_http_post.c b/res/res_http_post.c index 2e4a20a1d..3e265c4d5 100644 --- a/res/res_http_post.c +++ b/res/res_http_post.c @@ -266,7 +266,8 @@ static int __ast_http_post_load(int reload) struct ast_variable *v; struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 }; - if ((cfg = ast_config_load2("http.conf", "http", config_flags)) == CONFIG_STATUS_FILEUNCHANGED) { + cfg = ast_config_load2("http.conf", "http", config_flags); + if (cfg == CONFIG_STATUS_FILEMISSING || cfg == CONFIG_STATUS_FILEUNCHANGED || cfg == CONFIG_STATUS_FILEINVALID) { return 0; } |