]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: test the right thing, doofus github-selfhosted/master github/master
authordjm@openbsd.org <djm@openbsd.org>
Tue, 30 Dec 2025 04:28:42 +0000 (04:28 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 30 Dec 2025 04:29:06 +0000 (15:29 +1100)
OpenBSD-Commit-ID: 31b2ec6e0b3dbd08c60ba2d969dd687cd80c25fd

packet.c

index 3d47df758c2693f6105086d5398e9acfccd01fdb..05c2adfac54bad56c95415d6fc687931ba46afea 100644 (file)
--- a/packet.c
+++ b/packet.c
@@ -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 */