diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-07-08 21:59:36 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-07-08 21:59:36 +0800 |
commit | 50a5d3756fedee5078b756a686cc24213dcfcb02 (patch) | |
tree | 857e707af564cd8eddd77813d642482511c1ed50 /svr-tcpfwd.c | |
parent | ca86726f9f943b2b18e5694b442d3d2e1c0fa903 (diff) |
Send a failure response if a client receives a global request
Diffstat (limited to 'svr-tcpfwd.c')
-rw-r--r-- | svr-tcpfwd.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c index 179d5ff..7033a65 100644 --- a/svr-tcpfwd.c +++ b/svr-tcpfwd.c @@ -34,14 +34,6 @@ #include "runopts.h" #include "auth.h" -static void send_msg_request_failure(); - -static void send_msg_request_failure() { - CHECKCLEARTOWRITE(); - buf_putbyte(ses.writepayload, SSH_MSG_REQUEST_FAILURE); - encrypt_packet(); -} - #ifndef ENABLE_SVR_REMOTETCPFWD /* This is better than SSH_MSG_UNIMPLEMENTED */ @@ -53,7 +45,6 @@ void recv_msg_global_request_remotetcp() { /* */ #endif /* !ENABLE_SVR_REMOTETCPFWD */ -static void send_msg_request_success(); static int svr_cancelremotetcp(); static int svr_remotetcpreq(); static int newtcpdirect(struct Channel * channel); @@ -115,15 +106,6 @@ out: TRACE(("leave recv_msg_global_request")) } - -static void send_msg_request_success() { - - CHECKCLEARTOWRITE(); - buf_putbyte(ses.writepayload, SSH_MSG_REQUEST_SUCCESS); - encrypt_packet(); - -} - static int matchtcp(void* typedata1, void* typedata2) { const struct TCPListener *info1 = (struct TCPListener*)typedata1; |