via: 0d5fcf65a0fef932f32874da6f4bdddb69279c53 (commit)
from: 294436486302d0547b34ba26e5fa402c4ebaa58f (commit)
= COMMIT LOG ===========================================================
committer: Mathieu Rene
comments:
xml_config: change min/max enforcements to >= instead of >
diff --git a/src/switch_xml_config.c b/src/switch_xml_config.c
index b6b37bd..5ade057 100644
--- a/src/switch_xml_config.c
+++ b/src/switch_xml_config.c
@@ -177,7 +177,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev
if (int_options) {
/* Enforce validation options */
- if ((int_options->enforce_min && !(intval > int_options->min)) || (int_options->enforce_max && !(intval < int_options->max))) {
+ if ((int_options->enforce_min && !(intval >= int_options->min)) || (int_options->enforce_max && !(intval <= int_options->max))) {
/* Validation failed, set default */
intval = (int) (intptr_t) item->defaultvalue;
/* Then complain */
Summary of changes: src/switch_xml_config.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630
--
FreeSWITCH Source