Mercurial > dropbear
comparison svr-tcpfwd.c @ 1816:96d573b40bb4
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 31 Mar 2021 23:24:55 +0800 |
parents | 5015c80808c5 |
children | a7cc3332d8ab |
comparison
equal
deleted
inserted
replaced
1814:f78e67527731 | 1816:96d573b40bb4 |
---|---|
144 struct TCPListener tcpinfo; | 144 struct TCPListener tcpinfo; |
145 | 145 |
146 TRACE(("enter cancelremotetcp")) | 146 TRACE(("enter cancelremotetcp")) |
147 | 147 |
148 bindaddr = buf_getstring(ses.payload, &addrlen); | 148 bindaddr = buf_getstring(ses.payload, &addrlen); |
149 if (addrlen > MAX_IP_LEN) { | 149 if (addrlen > MAX_HOST_LEN) { |
150 TRACE(("addr len too long: %d", addrlen)) | 150 TRACE(("addr len too long: %d", addrlen)) |
151 goto out; | 151 goto out; |
152 } | 152 } |
153 | 153 |
154 port = buf_getint(ses.payload); | 154 port = buf_getint(ses.payload); |
179 struct Listener *listener = NULL; | 179 struct Listener *listener = NULL; |
180 | 180 |
181 TRACE(("enter remotetcpreq")) | 181 TRACE(("enter remotetcpreq")) |
182 | 182 |
183 request_addr = buf_getstring(ses.payload, &addrlen); | 183 request_addr = buf_getstring(ses.payload, &addrlen); |
184 if (addrlen > MAX_IP_LEN) { | 184 if (addrlen > MAX_HOST_LEN) { |
185 TRACE(("addr len too long: %d", addrlen)) | 185 TRACE(("addr len too long: %d", addrlen)) |
186 goto out; | 186 goto out; |
187 } | 187 } |
188 | 188 |
189 port = buf_getint(ses.payload); | 189 port = buf_getint(ses.payload); |