Commit 8c00786e authored by Geoff Simmons's avatar Geoff Simmons

Fix workspace usage after Varnish WS overhaul.

parent 808a8eee
......@@ -600,13 +600,13 @@ VCL_BLOB vmod_symmetric_decrypt(VRT_CTX,
return NULL;
}
plaintext->blob = plain = WS_Front(ctx->ws);
if (WS_ReserveAll(ctx->ws) < (unsigned) ciphertext->len) {
VERRNOMEM(ctx, "Allocating plaintext result in %s.decrypt()",
symmetric->vcl_name);
WS_Reset(ctx->ws, snap);
return NULL;
}
plaintext->blob = plain = WS_Reservation(ctx->ws);
hd = get_symmetric_hd(ctx, symmetric, "decrypt");
if (hd == NULL)
......
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