diff options
author | 2003-12-16 15:49:51 +0000 | |
---|---|---|
committer | 2003-12-16 15:49:51 +0000 | |
commit | 7b3e1d454fbb50af1690c5bd31d0d9c2f6db2cfa (patch) | |
tree | d028fe91f08f7d54bc23a4e5b3b15525ab5dd6f0 /usr.bin/ssh/ssh.c | |
parent | Don't need linear mappings here either (diff) | |
download | wireguard-openbsd-7b3e1d454fbb50af1690c5bd31d0d9c2f6db2cfa.tar.xz wireguard-openbsd-7b3e1d454fbb50af1690c5bd31d0d9c2f6db2cfa.zip |
application layer keep alive (ServerAliveInterval ServerAliveCountMax)
for ssh(1), similar to the sshd(8) option; ok beck@; with help from
jmc and dtucker@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index 4ed4d71be90..1af84d9baef 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -40,7 +40,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh.c,v 1.205 2003/12/09 17:30:05 markus Exp $"); +RCSID("$OpenBSD: ssh.c,v 1.206 2003/12/16 15:49:51 markus Exp $"); #include <openssl/evp.h> #include <openssl/err.h> @@ -1014,16 +1014,13 @@ client_subsystem_reply(int type, u_int32_t seq, void *ctxt) } void -client_global_request_reply(int type, u_int32_t seq, void *ctxt) +client_global_request_reply_fwd(int type, u_int32_t seq, void *ctxt) { int i; i = client_global_request_id++; - if (i >= options.num_remote_forwards) { - debug("client_global_request_reply: too many replies %d > %d", - i, options.num_remote_forwards); + if (i >= options.num_remote_forwards) return; - } debug("remote forward %s for: listen %d, connect %s:%d", type == SSH2_MSG_REQUEST_SUCCESS ? "success" : "failure", options.remote_forwards[i].port, |