Commit 624994c5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

We do not need to set the oc->objhead, assert it has already happened.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5563 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 8053cd71
......@@ -204,7 +204,8 @@ STV_MkObject(struct sess *sp, void *ptr, unsigned ltot,
CHECK_OBJ_NOTNULL(sp->objcore, OBJCORE_MAGIC);
o->objcore = sp->objcore;
sp->objcore->objhead = sp->objhead;
assert(o->objcore->objhead == sp->objhead);
sp->objhead = NULL; /* refcnt follows pointer. */
sp->objcore = NULL; /* refcnt follows pointer. */
BAN_NewObj(o);
......
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