]> err.no Git - varnish/commitdiff
A NULL pointer does not match a regexp
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 11 Aug 2006 14:21:55 +0000 (14:21 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 11 Aug 2006 14:21:55 +0000 (14:21 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@814 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vrt_re.c

index c50460e738f5c4b8f4bc6c4acb4e9a1b3e362bc3..1a2c5ea2a395ca1c83851a6d861269bab8790dff 100644 (file)
@@ -43,6 +43,8 @@ VRT_re_match(const char *s, void *re)
        regex_t *t;
        int i;
 
+       if (s == NULL)
+               return (0);
        t = re;
        i = regexec(t, s, 0, NULL, 0);
        if (i == 0)