changeset 1816:96d573b40bb4

merge
author Matt Johnston <matt@ucc.asn.au>
date Wed, 31 Mar 2021 23:24:55 +0800
parents f78e67527731 (current diff) 5015c80808c5 (diff)
children 209711833f15
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}