diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-11-16 12:46:14 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-11-16 12:46:14 +0000 |
commit | 9d21d89fc9eeb9a749f10887829a773a7d8ecfb3 (patch) | |
tree | 4861e26e0a0cfa47ced5d17a04ef52743ca6fc40 /usr.bin | |
parent | 4bc4e191eb2b3e3bc53a3ab8dacf1502ac60a9fd (diff) |
handle empty lines instead of dumping core; report from sha@sha-1.net
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/ssh-keyscan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-keyscan.c b/usr.bin/ssh/ssh-keyscan.c index f3df3b6538e..4bb21001fcc 100644 --- a/usr.bin/ssh/ssh-keyscan.c +++ b/usr.bin/ssh/ssh-keyscan.c @@ -7,7 +7,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-keyscan.c,v 1.30 2001/10/08 19:05:05 markus Exp $"); +RCSID("$OpenBSD: ssh-keyscan.c,v 1.31 2001/11/16 12:46:13 markus Exp $"); #include <sys/queue.h> #include <errno.h> @@ -623,6 +623,8 @@ do_host(char *host) char *name = strnnsep(&host, " \t\n"); int j; + if (name == NULL) + return; for (j = KT_RSA1; j <= KT_RSA; j *= 2) { if (get_keytypes & j) { while (ncon >= MAXCON) |