diff options
author | 2001-04-05 20:01:10 +0000 | |
---|---|---|
committer | 2001-04-05 20:01:10 +0000 | |
commit | 200bc02ad3dacc4bc615cb6bccf4e7e4f592f671 (patch) | |
tree | f615de28b2bae690f7d0888e9ac5b7666229a545 /usr.bin/ssh/clientloop.c | |
parent | Remove X386 and X11R4 (diff) | |
download | wireguard-openbsd-200bc02ad3dacc4bc615cb6bccf4e7e4f592f671.tar.xz wireguard-openbsd-200bc02ad3dacc4bc615cb6bccf4e7e4f592f671.zip |
for ~R print message if server does not support rekeying. (and fix ~R).
Diffstat (limited to 'usr.bin/ssh/clientloop.c')
-rw-r--r-- | usr.bin/ssh/clientloop.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index 41920e0f364..74610c6b188 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/clientloop.c @@ -59,7 +59,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: clientloop.c,v 1.58 2001/04/05 11:09:15 markus Exp $"); +RCSID("$OpenBSD: clientloop.c,v 1.59 2001/04/05 20:01:10 markus Exp $"); #include "ssh.h" #include "ssh1.h" @@ -554,8 +554,12 @@ process_escapes(Buffer *bin, Buffer *bout, Buffer *berr, char *buf, int len) continue; case 'R': - if (compat20 && !(datafellows && SSH_BUG_NOREKEY)) - need_rekeying = 1; + if (compat20) { + if (datafellows & SSH_BUG_NOREKEY) + log("Server does not support re-keying"); + else + need_rekeying = 1; + } continue; case '&': |