upstream: test the right thing, doofus

OpenBSD-Commit-ID: 31b2ec6e0b3dbd08c60ba2d969dd687cd80c25fd
This commit is contained in:
djm@openbsd.org
2025-12-30 04:28:42 +00:00
committed by Damien Miller
parent 5f2bc9cb86
commit ea367b4bbc

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: packet.c,v 1.330 2025/12/30 04:23:53 djm Exp $ */
/* $OpenBSD: packet.c,v 1.331 2025/12/30 04:28:42 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1096,7 +1096,7 @@ ssh_packet_check_rekey_blocklimit(struct ssh *ssh, u_int packet_len, int hard)
state->p_read.packets > MAX_PACKETS)
return 1;
if (state->newkeys == NULL)
if (state->newkeys[MODE_OUT] == NULL)
return 0;
/* Rekey after (cipher-specific) maximum blocks */