From 283e98e3f6ca776c1a15cd076e6ae1e999d8a6b3 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 28 Aug 2020 09:53:42 +0200 Subject: [PATCH] Fix style in host_matches() Sponsored by: Robert Klemme --- urlmatch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/urlmatch.c b/urlmatch.c index 868a16b3..a028361e 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -1301,7 +1301,8 @@ static int host_matches(const struct http_request *http, { assert(http->host != NULL); #ifdef FEATURE_PCRE_HOST_PATTERNS - if (pattern->pattern.url_spec.host_regex_type == PCRE_HOST_PATTERN) { + if (pattern->pattern.url_spec.host_regex_type == PCRE_HOST_PATTERN) + { return ((NULL == pattern->pattern.url_spec.host_regex) || (0 == regexec(pattern->pattern.url_spec.host_regex, http->host, 0, NULL, 0))); -- 2.39.2