]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: fix proxy multiplexing mode, broken when keystroke timing
authordjm@openbsd.org <djm@openbsd.org>
Wed, 21 Feb 2024 05:57:34 +0000 (05:57 +0000)
committerDamien Miller <djm@mindrot.org>
Wed, 21 Feb 2024 05:58:02 +0000 (16:58 +1100)
obfuscation was added. GHPR#463 from montag451

OpenBSD-Commit-ID: 4e412d59b3f557d431f1d81c715a3bc0491cc677

clientloop.c

index eb4902905fb12bc3d68d5e3ec9d17eb728117094..8ec36af94b3f55e507ffb150dbb6514290a73a0a 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.402 2023/11/24 00:31:30 dtucker Exp $ */
+/* $OpenBSD: clientloop.c,v 1.403 2024/02/21 05:57:34 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -517,7 +517,7 @@ send_chaff(struct ssh *ssh)
 {
        int r;
 
-       if ((ssh->kex->flags & KEX_HAS_PING) == 0)
+       if (ssh->kex == NULL || (ssh->kex->flags & KEX_HAS_PING) == 0)
                return 0;
        /* XXX probabilistically send chaff? */
        /*