summaryrefslogtreecommitdiffstats
path: root/clientloop.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2023-03-31 06:04:15 +0200
committerDamien Miller <djm@mindrot.org>2023-03-31 06:06:20 +0200
commitc6011129cafe4c411f6ef670a4cf271314708eb8 (patch)
tree3e21e5524dcc65f203ec17597060994bf8f5a875 /clientloop.c
parentupstream: don't attempt to decode a ridiculous number of (diff)
downloadopenssh-c6011129cafe4c411f6ef670a4cf271314708eb8.tar.xz
openssh-c6011129cafe4c411f6ef670a4cf271314708eb8.zip
upstream: remove redundant test
OpenBSD-Commit-ID: 6a0b719f9b1ae9d42ad8c5b144c7962c93792f7c
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientloop.c b/clientloop.c
index 3fb72fb2f..baa988af4 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -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 ||