]> err.no Git - varnish/commitdiff
Missed an assignment in last commit.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 16 Jan 2008 14:53:48 +0000 (14:53 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 16 Jan 2008 14:53:48 +0000 (14:53 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2352 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index e8a9f7a7bfcf8f258ba5b80402659754d6141ec0..cc20a6418fe64cb9e1096a2a6285d8c7a96c28f9 100644 (file)
@@ -230,7 +230,8 @@ http_GetHdr(const struct http *hp, const char *hdr, char **ptr)
        hdr++;
        u = http_findhdr(hp, l - 1, hdr);
        if (u == 0) {
-               *ptr = NULL;
+               if (ptr != NULL)
+                       *ptr = NULL;
                return (0);
        }
        if (ptr != NULL) {