Commit 92342970 authored by Nils Goroll's avatar Nils Goroll

polish

parent 52e381f3
......@@ -202,6 +202,7 @@ vmod_director_healthy(VRT_CTX, VCL_BACKEND b, VCL_TIME *t)
int i;
VCL_BOOL br, r = 1;
VCL_TIME bt, tt[2];
VCL_BACKEND be;
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
CAST_OBJ_NOTNULL(d, b->priv, VMOD_ALL_HEALTHY_DIRECTOR_MAGIC);
......@@ -212,8 +213,9 @@ vmod_director_healthy(VRT_CTX, VCL_BACKEND b, VCL_TIME *t)
}
for (i = 0; i < d->nconsider; i++) {
CHECK_OBJ_NOTNULL(d->consider[i], DIRECTOR_MAGIC);
br = !!VRT_Healthy(ctx, d->consider[i], &bt);
be = d->consider[i];
CHECK_OBJ_NOTNULL(be, DIRECTOR_MAGIC);
br = !!VRT_Healthy(ctx, be, &bt);
r &= br;
if (t) {
if (r && br) {
......
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