]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: remove redundant test
authordjm@openbsd.org <djm@openbsd.org>
Fri, 31 Mar 2023 04:04:15 +0000 (04:04 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 31 Mar 2023 04:06:20 +0000 (15:06 +1100)
OpenBSD-Commit-ID: 6a0b719f9b1ae9d42ad8c5b144c7962c93792f7c

clientloop.c

index 3fb72fb2fd7e8f99c35247a86ef0fdb0dc00214d..baa988af4e8927b6ff2d8ca5ac204fc54a89657b 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.390 2023/03/08 04:43:12 guenther Exp $ */
+/* $OpenBSD: clientloop.c,v 1.391 2023/03/31 04:04:15 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2270,7 +2270,7 @@ key_accepted_by_hostkeyalgs(const struct sshkey *key)
        const char *ktype = sshkey_ssh_name(key);
        const char *hostkeyalgs = options.hostkeyalgorithms;
 
-       if (key == NULL || key->type == KEY_UNSPEC)
+       if (key->type == KEY_UNSPEC)
                return 0;
        if (key->type == KEY_RSA &&
            (match_pattern_list("rsa-sha2-256", hostkeyalgs, 0) == 1 ||