summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet.c b/packet.c
index 7ddebeb71..f406c0755 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.c,v 1.228 2016/02/08 10:57:07 djm Exp $ */ 1/* $OpenBSD: packet.c,v 1.229 2016/02/17 22:20:14 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -263,8 +263,8 @@ ssh_alloc_session_state(void)
263int 263int
264ssh_packet_is_rekeying(struct ssh *ssh) 264ssh_packet_is_rekeying(struct ssh *ssh)
265{ 265{
266 return ssh->state->rekeying || 266 return compat20 &&
267 (ssh->kex != NULL && ssh->kex->done == 0); 267 (ssh->state->rekeying || (ssh->kex != NULL && ssh->kex->done == 0));
268} 268}
269 269
270/* 270/*