Commit 54061934 authored by Geoff Simmons's avatar Geoff Simmons

std.ip() emits an error to the log and returns the fallback when

there is insufficient workspace
parent e05ac94a
......@@ -140,7 +140,11 @@ vmod_ip(VRT_CTX, VCL_STRING s, VCL_IP d)
assert(VSA_Sane(d));
p = WS_Alloc(ctx->ws, vsa_suckaddr_len);
AN(p);
if (p == NULL) {
VSLb(ctx->vsl, SLT_VCL_Error,
"vmod std.ip(): insufficient workspace");
return d;
}
r = NULL;
if (s != 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