summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/clientloop.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2003-04-02 09:48:07 +0000
committermarkus <markus@openbsd.org>2003-04-02 09:48:07 +0000
commitbe896bcfd9a2b8258048edad3d5d8a434f57a68e (patch)
treec76c55cd62ed3c1813fe1694bfcf6165aea0f672 /usr.bin/ssh/clientloop.c
parentHewlett Packard -> Hewlett-Packard (diff)
downloadwireguard-openbsd-be896bcfd9a2b8258048edad3d5d8a434f57a68e.tar.xz
wireguard-openbsd-be896bcfd9a2b8258048edad3d5d8a434f57a68e.zip
reapply rekeying chage, tested by henning@, ok djm@
Diffstat (limited to 'usr.bin/ssh/clientloop.c')
-rw-r--r--usr.bin/ssh/clientloop.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c
index af207c070b3..a40019d08d0 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.107 2003/04/01 10:22:21 markus Exp $");
+RCSID("$OpenBSD: clientloop.c,v 1.108 2003/04/02 09:48:07 markus Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -968,9 +968,8 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
/* Do channel operations unless rekeying in progress. */
if (!rekeying) {
channel_after_select(readset, writeset);
-
- if (need_rekeying) {
- debug("user requests rekeying");
+ if (need_rekeying || packet_need_rekeying()) {
+ debug("need rekeying");
xxx_kex->done = 0;
kex_send_kexinit(xxx_kex);
need_rekeying = 0;