change WS_Reserve call for new VRT versions

parent 67f97a3e
......@@ -135,7 +135,11 @@ dcs_varnish_classify(dcs_ctx *ctx) {
char *malloced = NULL;
char *uabuf;
#if VRT_MAJOR_VERSION >= 10
space = WS_ReserveAll(ctx->ws);
#else
space = WS_Reserve(ctx->ws, 0);
#endif
if (space >= WS_SIZE) {
mem = ctx->ws->f;
......
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