summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index 06a2e1e5c..b58dd8f37 100644
--- a/sshd.c
+++ b/sshd.c
@@ -422,7 +422,8 @@ sshd_exchange_identification(int sock_in, int sock_out)
422 minor = PROTOCOL_MINOR_1; 422 minor = PROTOCOL_MINOR_1;
423 } 423 }
424 snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s", major, minor, 424 snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s", major, minor,
425 SSH_VERSION, newline); 425 options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM,
426 newline);
426 server_version_string = xstrdup(buf); 427 server_version_string = xstrdup(buf);
427 428
428 /* Send our protocol version identification. */ 429 /* Send our protocol version identification. */
@@ -1573,6 +1574,11 @@ main(int ac, char **av)
1573 sensitive_data.host_keys[i] = NULL; 1574 sensitive_data.host_keys[i] = NULL;
1574 continue; 1575 continue;
1575 } 1576 }
1577 if (auth_key_is_revoked(key, 1)) {
1578 key_free(key);
1579 sensitive_data.host_keys[i] = NULL;
1580 continue;
1581 }
1576 switch (key->type) { 1582 switch (key->type) {
1577 case KEY_RSA1: 1583 case KEY_RSA1:
1578 sensitive_data.ssh1_host_key = key; 1584 sensitive_data.ssh1_host_key = key;