Commit af11c706 authored by Artur Bergman's avatar Artur Bergman

reminder to add test case to catch this error

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4145 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 466795e2
......@@ -334,6 +334,11 @@ EXP_NukeOne(struct sess *sp, struct objcore_head *lru)
if (oc == NULL)
return (-1);
/* o is never allocated so this shouldn't work
* making a comment so I don't forget
* why does no test case capture this?
* could be my swine flu riddled mind playing games? / Artur
*/
WSL(sp->wrk, SLT_ExpKill, 0, "%u LRU", o->xid);
HSH_Deref(sp->wrk, &o);
return (1);
......
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