Commit 8e90772d authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Allow ACLs to be used outside of transactions

parent b2e4dc36
......@@ -67,7 +67,11 @@ VRT_acl_log(VRT_CTX, const char *msg)
{
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
VSLb(ctx->vsl, SLT_VCL_acl, "%s", msg);
AN(msg);
if (ctx->vsl != NULL)
VSLb(ctx->vsl, SLT_VCL_acl, "%s", msg);
else
VSL(SLT_VCL_acl, 0, "%s", msg);
}
/*--------------------------------------------------------------------*/
......
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