diff options
Diffstat (limited to 'svr-tcpfwd.c')
-rw-r--r-- | svr-tcpfwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c index c3746bf..f3bab25 100644 --- a/svr-tcpfwd.c +++ b/svr-tcpfwd.c @@ -146,7 +146,7 @@ static int svr_cancelremotetcp() { 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 @@ static int svr_remotetcpreq(int *allocated_listen_port) { 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; } |