summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-07-15 08:00:11 +0000
committerDamien Miller <djm@mindrot.org>2015-07-15 18:02:12 +1000
commitdf56a8035d429b2184ee94aaa7e580c1ff67f73a (patch)
tree918316a869880bc53db40ae39ee4766a3435c7b9 /sshd.c
parent41e38c4d49dd60908484e6703316651333f16b93 (diff)
upstream commit
fix NULL-deref when SSH1 reenabled Upstream-ID: f22fd805288c92b3e9646782d15b48894b2d5295
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 81a9b8245..4bb34b101 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.454 2015/07/10 06:21:53 markus Exp $ */ 1/* $OpenBSD: sshd.c,v 1.455 2015/07/15 08:00:11 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) 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),