Commit 288d5706 authored by Nils Goroll's avatar Nils Goroll
parent 160edb70
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "vcc_blobsynth_if.h" #include "vcc_blobsynth_if.h"
VCL_VOID VCL_VOID
vmod_synthetic(VRT_CTX, VCL_BLOB blob) vmod_synthetic(VRT_CTX, VCL_BLOB body)
{ {
struct vsb *vsb; struct vsb *vsb;
...@@ -25,10 +25,10 @@ vmod_synthetic(VRT_CTX, VCL_BLOB blob) ...@@ -25,10 +25,10 @@ vmod_synthetic(VRT_CTX, VCL_BLOB blob)
CAST_OBJ_NOTNULL(vsb, ctx->specific, VSB_MAGIC); CAST_OBJ_NOTNULL(vsb, ctx->specific, VSB_MAGIC);
if (blob == NULL || blob->len == 0) if (body == NULL || body->len == 0)
return; return;
AN(blob->priv); AN(body->blob);
if (VSB_bcat(vsb, blob->priv, blob->len)) if (VSB_bcat(vsb, body->blob, body->len))
VRT_fail(ctx, "blobsynth.synthetic(): %s", VRT_fail(ctx, "blobsynth.synthetic(): %s",
strerror(VSB_error(vsb))); strerror(VSB_error(vsb)));
} }
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