Commit af24f081 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix an insignificant race found by Coverity

parent 5583667f
......@@ -169,9 +169,9 @@ vmod_fallback_resolve(VRT_CTX, VCL_BACKEND dir)
if (++fb->cur == fb->vd->n_backend)
fb->cur = 0;
}
vdir_unlock(fb->vd);
if (u == fb->vd->n_backend)
be = NULL;
vdir_unlock(fb->vd);
return (be);
}
......
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