Commit b16b6733 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune Committed by Lasse Karstensen

Allow ACLs to be used outside of transactions

parent 214db164
......@@ -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