diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-12-06 16:28:19 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-12-06 16:28:19 +0000 |
commit | eaffb9d6b6daafdfba60e76f766ed0dbf69c3d60 (patch) | |
tree | 8f74f733d837eddba931ab8a94677d9aeabe0e13 /ssh-keyscan.c | |
parent | 0795848def0a66570eb724b93377bc839df33512 (diff) |
- markus@cvs.openbsd.org 2001/11/16 12:46:13
[ssh-keyscan.c]
handle empty lines instead of dumping core; report from sha@sha-1.net
Diffstat (limited to 'ssh-keyscan.c')
-rw-r--r-- | ssh-keyscan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c index 3fbe88d56..62204102b 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c | |||
@@ -7,7 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "includes.h" | 9 | #include "includes.h" |
10 | RCSID("$OpenBSD: ssh-keyscan.c,v 1.30 2001/10/08 19:05:05 markus Exp $"); | 10 | RCSID("$OpenBSD: ssh-keyscan.c,v 1.31 2001/11/16 12:46:13 markus Exp $"); |
11 | 11 | ||
12 | #if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) | 12 | #if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) |
13 | #include <sys/queue.h> | 13 | #include <sys/queue.h> |
@@ -647,6 +647,8 @@ do_host(char *host) | |||
647 | char *name = strnnsep(&host, " \t\n"); | 647 | char *name = strnnsep(&host, " \t\n"); |
648 | int j; | 648 | int j; |
649 | 649 | ||
650 | if (name == NULL) | ||
651 | return; | ||
650 | for (j = KT_RSA1; j <= KT_RSA; j *= 2) { | 652 | for (j = KT_RSA1; j <= KT_RSA; j *= 2) { |
651 | if (get_keytypes & j) { | 653 | if (get_keytypes & j) { |
652 | while (ncon >= MAXCON) | 654 | while (ncon >= MAXCON) |