Commit 2f7fee5a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix a NULL pointer dereference which cannot currently happen.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2004 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c2e22e20
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment