Mercurial > dropbear
comparison svr-tcpfwd.c @ 1789:249681d9ecda
Use buf_eatstring instead
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 10 Dec 2020 23:18:48 +0800 |
parents | 1fc0012b9c38 |
children | 5015c80808c5 |
comparison
equal
deleted
inserted
replaced
1788:1fc0012b9c38 | 1789:249681d9ecda |
---|---|
37 | 37 |
38 #if !DROPBEAR_SVR_REMOTETCPFWD | 38 #if !DROPBEAR_SVR_REMOTETCPFWD |
39 | 39 |
40 /* This is better than SSH_MSG_UNIMPLEMENTED */ | 40 /* This is better than SSH_MSG_UNIMPLEMENTED */ |
41 void recv_msg_global_request_remotetcp() { | 41 void recv_msg_global_request_remotetcp() { |
42 unsigned int len = 0; | |
43 unsigned int wantreply = 0; | 42 unsigned int wantreply = 0; |
44 | 43 |
45 TRACE(("recv_msg_global_request_remotetcp: remote tcp forwarding not compiled in")) | 44 TRACE(("recv_msg_global_request_remotetcp: remote tcp forwarding not compiled in")) |
46 | 45 |
47 len = buf_getint(ses.payload); | 46 buf_eatstring(ses.payload); |
48 buf_incrpos(ses.payload, len); | |
49 wantreply = buf_getbool(ses.payload); | 47 wantreply = buf_getbool(ses.payload); |
50 if (wantreply) { | 48 if (wantreply) { |
51 send_msg_request_failure(); | 49 send_msg_request_failure(); |
52 } | 50 } |
53 } | 51 } |