diff options
author | Matt Johnston <matt@ucc.asn.au> | 2021-03-31 23:24:55 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2021-03-31 23:24:55 +0800 |
commit | ee49a1b16d550d645e52378cab80ef1fc671b800 (patch) | |
tree | aa8b0982547a2331de199ede4ada035a71665cf7 | |
parent | 325d0c1d02d99bbc844af21fad16db1691d419fc (diff) | |
parent | 8d0013bbe0387535e0bc1bd7e250eb353e0e2327 (diff) |
merge
-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; } |