summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/clientloop.c b/clientloop.c
index 8f0332df4..4acf2806d 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.330 2019/12/21 02:19:13 djm Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.331 2020/01/23 02:46:49 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2046,8 +2046,7 @@ static int
2046key_accepted_by_hostkeyalgs(const struct sshkey *key) 2046key_accepted_by_hostkeyalgs(const struct sshkey *key)
2047{ 2047{
2048 const char *ktype = sshkey_ssh_name(key); 2048 const char *ktype = sshkey_ssh_name(key);
2049 const char *hostkeyalgs = options.hostkeyalgorithms != NULL ? 2049 const char *hostkeyalgs = options.hostkeyalgorithms;
2050 options.hostkeyalgorithms : KEX_DEFAULT_PK_ALG;
2051 2050
2052 if (key == NULL || key->type == KEY_UNSPEC) 2051 if (key == NULL || key->type == KEY_UNSPEC)
2053 return 0; 2052 return 0;