Commit 6a70f4ae authored by Nils Goroll's avatar Nils Goroll

fix lost workspace overflow markers

As WS_Reset() clears the overflow marker, the correct order for
resetting and marking an overflow is WS_Reset(); WS_MarkOverflow();

Fixes the last seemingly obscure bit of #2645
parent 40555a04
......@@ -411,8 +411,8 @@ VRT_l_beresp_storage_hint(VRT_CTX, const char *str, ...)
if (p == NULL) {
VSLb(ctx->vsl, SLT_LostHeader, "storage_hint");
WS_MarkOverflow(ctx->ws);
WS_Reset(ctx->ws, sn);
WS_MarkOverflow(ctx->ws);
return;
}
......
......@@ -154,8 +154,8 @@ vmod_log(VRT_CTX, const char *fmt, ...)
va_end(ap);
if (p == NULL) {
WS_MarkOverflow(ctx->ws);
WS_Reset(ctx->ws, sn);
WS_MarkOverflow(ctx->ws);
return;
}
......
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