From 14f29c98a764441d6d2820a71abb8bd51fab4236 Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Fri, 10 May 2002 13:51:10 +0000 Subject: [PATCH] Fixed a segfault git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95030 13f79535-47bb-0310-9956-ffa450edef68 --- modules/metadata/mod_setenvif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0