-/* $OpenBSD: sshd.c,v 1.455 2015/07/15 08:00:11 djm Exp $ */
+/* $OpenBSD: sshd.c,v 1.456 2015/07/17 02:47:45 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
key = sensitive_data.host_keys[i];
if (key == NULL)
key = sensitive_data.host_pubkeys[i];
- if (key == NULL && key->type != KEY_RSA1)
+ if (key == NULL || key->type == KEY_RSA1)
continue;
/* Check that the key is accepted in HostkeyAlgorithms */
if (match_pattern_list(sshkey_ssh_name(key),