Commit 4a607fe3 authored by Geoff Simmons's avatar Geoff Simmons Committed by Dridi Boukelmoune

VMOD blob encoder: don't forget the terminating null byte

parent c4243b11
......@@ -431,6 +431,7 @@ encode(VRT_CTX, enum encoding enc, enum case_e kase, VCL_BLOB b)
WS_Reset(ctx->ws, snap);
return "";
}
buf[len] = '\0';
WS_Release(ctx->ws, len + 1);
return buf;
}
......
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