diff options
-rw-r--r-- | packet.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) | |||
263 | int | 263 | int |
264 | ssh_packet_is_rekeying(struct ssh *ssh) | 264 | ssh_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 | /* |