From 65879728a934c38d7707781664c8f57e91001f00 Mon Sep 17 00:00:00 2001 From: djm Date: Fri, 31 Mar 2023 04:04:15 +0000 Subject: [PATCH] remove redundant test --- usr.bin/ssh/clientloop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index 66925524f77..989d74921f4 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/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 * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -2255,7 +2255,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 || -- 2.20.1