diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2013-10-13 02:35:19 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2013-10-13 02:35:19 +0000 |
commit | 3caf0790a80c2e10c82a3a07719cddb2065c65d1 (patch) | |
tree | 2c6f4d1ca5d1c643faea64e1f4c90105a1ab406a /sbin/route | |
parent | aab5fee0721846740415f201b41c920033a49303 (diff) | |
parent | 006a42a9cb173cefe32d169c46748d6f00c41315 (diff) | |
download | src-3caf0790a80c2e10c82a3a07719cddb2065c65d1.tar.gz src-3caf0790a80c2e10c82a3a07719cddb2065c65d1.zip |
Notes
Diffstat (limited to 'sbin/route')
-rw-r--r-- | sbin/route/route.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index e575c711329f..6c2bbe2084b2 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -928,6 +928,11 @@ newroute(int argc, char **argv) } } + if (so[RTAX_DST].ss_len == 0) { + warnx("destination parameter required"); + usage(NULL); + } + if (nrflags & F_FORCEHOST) { nrflags |= F_ISHOST; #ifdef INET6 |