From: Brian Pane Date: Fri, 10 May 2002 13:51:10 +0000 (+0000) Subject: Fixed a segfault X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=575dd280410d992fe54c39d4b4dab2c50667c24b;p=apache Fixed a segfault git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95030 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/metadata/mod_setenvif.c b/modules/metadata/mod_setenvif.c index e810394612..6b18bd4d3d 100644 --- a/modules/metadata/mod_setenvif.c +++ b/modules/metadata/mod_setenvif.c @@ -565,7 +565,7 @@ static int match_headers(request_rec *r) } if ((b->pattern && apr_strmatch(b->pattern, val, val_len)) || - !ap_regexec(b->preg, val, 0, NULL, 0)) { + (!b->pattern && !ap_regexec(b->preg, val, 0, NULL, 0))) { const apr_array_header_t *arr = apr_table_elts(b->features); elts = (const apr_table_entry_t *) arr->elts;