X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=urlmatch.c;h=de0b9bba727fb111d8e65ca49d9a83accb609021;hb=314254a0ce92ddd619892d2dbaebeb245506f6b3;hp=ed7399be021db4d4c86dfc2c1393f4eb216ceeff;hpb=2339d3a2f18e8916688883bcc77271144e5a6aad;p=privoxy.git diff --git a/urlmatch.c b/urlmatch.c index ed7399be..de0b9bba 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -1,4 +1,4 @@ -const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.84 2014/06/20 09:47:10 fabiankeil Exp $"; +const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.85 2014/07/25 11:56:26 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/urlmatch.c,v $ @@ -1281,6 +1281,7 @@ static int port_matches(const int port, const char *port_list) static int host_matches(const struct http_request *http, const struct pattern_spec *pattern) { + assert(http->host != NULL); #ifdef FEATURE_EXTENDED_HOST_PATTERNS return ((NULL == pattern->pattern.url_spec.host_regex) || (0 == regexec(pattern->pattern.url_spec.host_regex, http->host, 0, NULL, 0)));