Commit 761f240e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Another protective assert

(and a typo)
parent 44f4a821
......@@ -749,6 +749,7 @@ VBF_Fetch(struct worker *wrk, struct req *req, struct objcore *oc,
if (oldobj != NULL) {
if (http_GetHdr(oldobj->http, H_Last_Modified, NULL) ||
http_GetHdr(oldobj->http, H_ETag, NULL)) {
assert(oldobj->objcore->refcnt > 0);
HSH_Ref(oldobj->objcore);
bo->ims_obj = oldobj;
}
......
......@@ -434,7 +434,7 @@ cnt_lookup(struct worker *wrk, struct req *req)
else {
/*
* We don't have a busy object, so treat this
* lige a pass
* like a pass
*/
VSLb(req->vsl, SLT_VCL_Error,
"vcl_hit{} returns fetch without busy object."
......
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