diff options
author | Terry Wilson <twilson@digium.com> | 2012-06-07 20:32:07 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2012-06-07 20:32:07 +0000 |
commit | 9f704b5d59a91879ba30b90b817090b71ca36afe (patch) | |
tree | 81595af089d9d278d737e5b7d98d3c974e44205b /main/udptl.c | |
parent | ac6ec71fd23d4fe0ce9a7bdd43d9461b4732c713 (diff) |
Fix reloading an unchanged file with the Config Options API
Adding multiple file support broke reloading an unchanged file. This
adds an enum for return values for the aco_process_* functions and
ensures that the config is not applied if res is not ACO_PROCESS_OK.
Review: https://reviewboard.asterisk.org/r/1979/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/udptl.c')
-rw-r--r-- | main/udptl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/udptl.c b/main/udptl.c index a550ff16f..e31d9f81c 100644 --- a/main/udptl.c +++ b/main/udptl.c @@ -1411,7 +1411,7 @@ static int removed_options_handler(const struct aco_option *opt, struct ast_vari static void __ast_udptl_reload(int reload) { - if (aco_process_config(&cfg_info, reload)) { + if (aco_process_config(&cfg_info, reload) == ACO_PROCESS_ERROR) { ast_log(LOG_WARNING, "Could not reload udptl config\n"); } } |