mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
merge
This commit is contained in:
commit
ee49a1b16d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user