Commit 6231c838 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix a NULL pointer deref in the Vary code.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1562 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 97bb1716
......@@ -158,7 +158,7 @@ VSLR(SLT_Debug, sp->fd, sp->hash_b, sp->hash_e);
o->ttl = 0;
VSL(SLT_ExpBan, 0, "%u was banned", o->xid);
EXP_TTLchange(o);
} else if (VRY_Match(sp, o->vary))
} else if (o->vary != NULL && VRY_Match(sp, o->vary))
break;
o->refcnt--;
}
......
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