]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
xml_config: change min/max enforcements to >= instead of >
authorMathieu Rene <mrene@avgs.ca>
Sun, 6 Feb 2011 06:28:09 +0000 (01:28 -0500)
committerMathieu Rene <mrene@avgs.ca>
Sun, 6 Feb 2011 06:28:51 +0000 (01:28 -0500)
src/switch_xml_config.c

index b6b37bd7dbd09c1af80e346bfa2641c05fbd249f..5ade057b374bda007276b4d23d2283619300ea02 100644 (file)
@@ -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 */