summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-07-17 02:47:45 +0000
committerDamien Miller <djm@mindrot.org>2015-07-17 12:48:15 +1000
commit25b14610dab655646a109db5ef8cb4c4bf2a48a0 (patch)
treed11a7a6c54a283741067fa73e9c06df8d7f17056 /sshd.c
parentdf56a8035d429b2184ee94aaa7e580c1ff67f73a (diff)
upstream commit
fix incorrect test for SSH1 keys when compiled without SSH1 support Upstream-ID: 6004d720345b8e481c405e8ad05ce2271726e451
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index 4bb34b101..5c7c6c221 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.455 2015/07/15 08:00:11 djm Exp $ */ 1/* $OpenBSD: sshd.c,v 1.456 2015/07/17 02:47:45 djm 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
@@ -798,7 +798,7 @@ list_hostkey_types(void)
798 key = sensitive_data.host_keys[i]; 798 key = sensitive_data.host_keys[i];
799 if (key == NULL) 799 if (key == NULL)
800 key = sensitive_data.host_pubkeys[i]; 800 key = sensitive_data.host_pubkeys[i];
801 if (key == NULL && key->type != KEY_RSA1) 801 if (key == NULL || key->type == KEY_RSA1)
802 continue; 802 continue;
803 /* Check that the key is accepted in HostkeyAlgorithms */ 803 /* Check that the key is accepted in HostkeyAlgorithms */
804 if (match_pattern_list(sshkey_ssh_name(key), 804 if (match_pattern_list(sshkey_ssh_name(key),