From 981b7ea259063002e013e73897f4be3a86f59d4c Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 24 Sep 2007 07:37:40 +0000 Subject: [PATCH] Fix a NULL pointer dereference which cannot currently happen. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2004 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/hash_classic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/hash_classic.c b/varnish-cache/bin/varnishd/hash_classic.c index ec40d087..fd02556d 100644 --- a/varnish-cache/bin/varnishd/hash_classic.c +++ b/varnish-cache/bin/varnishd/hash_classic.c @@ -167,7 +167,7 @@ hcl_lookup(struct sess *sp, struct objhead *noh) */ if (he2 != NULL) free(he2); - if (noh->hash != NULL) { + if (noh != NULL && noh->hash != NULL) { free(noh->hash); noh->hash = NULL; } -- 2.39.5