summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/ssh-keyscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ssh/ssh-keyscan.c')
-rw-r--r--usr.bin/ssh/ssh-keyscan.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/ssh/ssh-keyscan.c b/usr.bin/ssh/ssh-keyscan.c
index 8f581ba78ff..d5c5a42a39c 100644
--- a/usr.bin/ssh/ssh-keyscan.c
+++ b/usr.bin/ssh/ssh-keyscan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keyscan.c,v 1.79 2009/10/28 16:38:18 reyk Exp $ */
+/* $OpenBSD: ssh-keyscan.c,v 1.80 2009/12/25 19:40:21 stevesk Exp $ */
/*
* Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>.
*
@@ -789,9 +789,11 @@ main(int argc, char **argv)
IPv4or6 = AF_INET6;
break;
case 'V':
- scan_rdomain = a2port(optarg);
- if (scan_rdomain < 0)
- scan_rdomain = -1;
+ scan_rdomain = a2rdomain(optarg);
+ if (scan_rdomain == -1) {
+ fprintf(stderr, "Bad rdomain '%s'\n", optarg);
+ exit(1);
+ }
break;
case '?':
default: