# HG changeset patch # User Matt Johnston # Date 1617204295 -28800 # Node ID 96d573b40bb4790b287e35f23d2b109c42d490ac # Parent f78e675277313f00a8f86fe39fd288469814a312# Parent 5015c80808c51eab685d2231ea55ae5e22672281 merge diff -r f78e67527731 -r 96d573b40bb4 svr-tcpfwd.c --- a/svr-tcpfwd.c Wed Mar 31 23:23:14 2021 +0800 +++ b/svr-tcpfwd.c Wed Mar 31 23:24:55 2021 +0800 @@ -146,7 +146,7 @@ TRACE(("enter cancelremotetcp")) bindaddr = buf_getstring(ses.payload, &addrlen); - if (addrlen > MAX_IP_LEN) { + if (addrlen > MAX_HOST_LEN) { TRACE(("addr len too long: %d", addrlen)) goto out; } @@ -181,7 +181,7 @@ TRACE(("enter remotetcpreq")) request_addr = buf_getstring(ses.payload, &addrlen); - if (addrlen > MAX_IP_LEN) { + if (addrlen > MAX_HOST_LEN) { TRACE(("addr len too long: %d", addrlen)) goto out; }