]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: redundant test
authordjm@openbsd.org <djm@openbsd.org>
Mon, 25 Nov 2019 10:23:36 +0000 (10:23 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 25 Nov 2019 10:33:58 +0000 (21:33 +1100)
OpenBSD-Commit-ID: 38fa7806c528a590d91ae560e67bd8b246c2d7a3

monitor.c

index d4be7409e688a83eccde1dca254173f10c10c137..64eca98d61f1dc237e561fe775675e777a7290ea 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.204 2019/11/25 00:54:23 djm Exp $ */
+/* $OpenBSD: monitor.c,v 1.205 2019/11/25 10:23:36 djm Exp $ */
 /*
  * Copyright 2002 Niels Provos <provos@citi.umich.edu>
  * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -1464,7 +1464,7 @@ mm_answer_keyverify(struct ssh *ssh, int sock, struct sshbuf *m)
        /* encode ret != 0 as positive integer, since we're sending u32 */
        encoded_ret = (ret != 0);
        if ((r = sshbuf_put_u32(m, encoded_ret)) != 0 ||
-           (r = sshbuf_put_u8(m, sig_details != NULL != 0)) != 0)
+           (r = sshbuf_put_u8(m, sig_details != NULL)) != 0)
                fatal("%s: buffer error: %s", __func__, ssh_err(r));
        if (sig_details != NULL) {
                if ((r = sshbuf_put_u32(m, sig_details->sk_counter)) != 0 ||