Commit 7b60fe7d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Init the correct rwlock

parent 174ca62a
......@@ -910,14 +910,13 @@ vcl_cli_label(struct cli *cli, const char * const *av, void *priv)
bprintf(lbl->state, "%s", VCL_TEMP_LABEL);
lbl->temp = VCL_TEMP_WARM;
REPLACE(lbl->loaded_name, av[2]);
AZ(errno=pthread_rwlock_init(&vcl->temp_rwl, NULL));
AZ(errno=pthread_rwlock_init(&lbl->temp_rwl, NULL));
VTAILQ_INSERT_TAIL(&vcl_head, lbl, list);
}
if (lbl->label != NULL)
lbl->label->nlabels--;
lbl->label = vcl;
vcl->nlabels++;
return;
}
static void __match_proto__(cli_func_t)
......
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