]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't tolerate blank proto
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 25 Oct 2011 17:07:39 +0000 (12:07 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 25 Oct 2011 17:07:39 +0000 (12:07 -0500)
src/switch_ivr.c

index 0721639bb9116dae9c2f8937e47d2e38ee61c226..bb3886e341c0b8ce06f4bdd3d7eae93d7482c4f7 100644 (file)
@@ -3175,7 +3175,7 @@ SWITCH_DECLARE(char *) switch_ivr_check_presence_mapping(const char *exten_name,
                        const char *regex = switch_xml_attr(x_exten, "regex");
                        const char *proto = switch_xml_attr(x_exten, "proto");
                        
-                       if (regex && proto) {
+                       if (!zstr(regex) && !zstr(proto)) {
                                proceed = switch_regex_perform(exten_name, regex, &re, ovector, sizeof(ovector) / sizeof(ovector[0]));
                                switch_regex_safe_free(re);