From: Mathieu Rene Date: Sun, 6 Feb 2011 06:28:09 +0000 (-0500) Subject: xml_config: change min/max enforcements to >= instead of > X-Git-Tag: v1.2-rc1~187^2~17^2~16^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d5fcf65a0fef932f32874da6f4bdddb69279c53;p=thirdparty%2Ffreeswitch.git xml_config: change min/max enforcements to >= instead of > --- diff --git a/src/switch_xml_config.c b/src/switch_xml_config.c index b6b37bd7db..5ade057b37 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 */