Commit ec8f0546 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vrt: Skip the workspace reservation in VRT_IP_string()

parent 25589674
......@@ -598,15 +598,12 @@ VCL_STRING v_matchproto_()
VRT_IP_string(VRT_CTX, VCL_IP ip)
{
char buf[VTCP_ADDRBUFSIZE];
struct vsb vsb[1];
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
if (ip == NULL)
return (NULL);
VTCP_name(ip, buf, sizeof buf, NULL, 0);
WS_VSB_new(vsb, ctx->ws);
VSB_cat(vsb, buf);
return (WS_VSB_finish(vsb, ctx->ws, NULL));
return (WS_Copy(ctx->ws, buf, -1));
}
VCL_STRING v_matchproto_()
......
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