]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Correct type for end-of-list sentinel; fixes initializer
authordtucker@openbsd.org <dtucker@openbsd.org>
Tue, 8 Oct 2019 22:40:39 +0000 (22:40 +0000)
committerDamien Miller <djm@mindrot.org>
Wed, 9 Oct 2019 00:11:41 +0000 (11:11 +1100)
warnings on some platforms.  ok deraadt.

OpenBSD-Commit-ID: a990dbc2dac25bdfa07e79321349c73fd991efa2

kex.c

diff --git a/kex.c b/kex.c
index 5a8a03aad4578428e4cde7658d59fc546389a29d..49d701568c28a0abefd5be25949f81568554777a 100644 (file)
--- a/kex.c
+++ b/kex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kex.c,v 1.154 2019/09/06 14:45:34 naddy Exp $ */
+/* $OpenBSD: kex.c,v 1.155 2019/10/08 22:40:39 dtucker Exp $ */
 /*
  * Copyright (c) 2000, 2001 Markus Friedl.  All rights reserved.
  *
@@ -111,7 +111,7 @@ static const struct kexalg kexalgs[] = {
        { KEX_SNTRUP4591761X25519_SHA512, KEX_KEM_SNTRUP4591761X25519_SHA512, 0,
            SSH_DIGEST_SHA512 },
 #endif /* HAVE_EVP_SHA256 || !WITH_OPENSSL */
-       { NULL, -1, -1, -1},
+       { NULL, 0, -1, -1},
 };
 
 char *