r814 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Fri Aug 11 16:21:55 CEST 2006
Author: phk
Date: 2006-08-11 16:21:55 +0200 (Fri, 11 Aug 2006)
New Revision: 814
Modified:
trunk/varnish-cache/bin/varnishd/cache_vrt_re.c
Log:
A NULL pointer does not match a regexp
Modified: trunk/varnish-cache/bin/varnishd/cache_vrt_re.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vrt_re.c 2006-08-11 14:09:09 UTC (rev 813)
+++ trunk/varnish-cache/bin/varnishd/cache_vrt_re.c 2006-08-11 14:21:55 UTC (rev 814)
@@ -43,6 +43,8 @@
regex_t *t;
int i;
+ if (s == NULL)
+ return (0);
t = re;
i = regexec(t, s, 0, NULL, 0);
if (i == 0)
More information about the varnish-commit
mailing list