From: Anthony Minessale Date: Thu, 23 Sep 2010 18:33:33 +0000 (-0500) Subject: FSCORE-677 X-Git-Tag: v1.2-rc1~291^2~40^2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4548a606ee98c29df8cdffb6fe0966843dcbbcb;p=thirdparty%2Ffreeswitch.git FSCORE-677 --- diff --git a/src/switch_regex.c b/src/switch_regex.c index 88152f978f..38c527cc0a 100644 --- a/src/switch_regex.c +++ b/src/switch_regex.c @@ -215,7 +215,7 @@ SWITCH_DECLARE(switch_status_t) switch_regex_match_partial(const char *target, c if (match_count > 0) { *partial = 0; return SWITCH_STATUS_SUCCESS; - } else if (match_count == PCRE_ERROR_PARTIAL) { + } else if (match_count == PCRE_ERROR_PARTIAL || match_count == PCRE_ERROR_BADPARTIAL) { /* yes it is already set, but the code is clearer this way */ *partial = 1; return SWITCH_STATUS_SUCCESS;