diff options
author | 2009-12-25 19:40:21 +0000 | |
---|---|---|
committer | 2009-12-25 19:40:21 +0000 | |
commit | a6657ca5b0cbf636ffd75dcc3fec753cc91cd863 (patch) | |
tree | 081bd102236ce8a9ee1c6ceb35e25c4592ecf9cb /usr.bin/ssh/ssh-keyscan.c | |
parent | No stand subdir to recurse in. (diff) | |
download | wireguard-openbsd-a6657ca5b0cbf636ffd75dcc3fec753cc91cd863.tar.xz wireguard-openbsd-a6657ca5b0cbf636ffd75dcc3fec753cc91cd863.zip |
validate routing domain is in range 0-RT_TABLEID_MAX.
'Looks right' deraadt@
Diffstat (limited to 'usr.bin/ssh/ssh-keyscan.c')
-rw-r--r-- | usr.bin/ssh/ssh-keyscan.c | 10 |
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: |