aboutsummaryrefslogtreecommitdiff
path: root/sbin/route
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2013-10-13 02:35:19 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2013-10-13 02:35:19 +0000
commit3caf0790a80c2e10c82a3a07719cddb2065c65d1 (patch)
tree2c6f4d1ca5d1c643faea64e1f4c90105a1ab406a /sbin/route
parentaab5fee0721846740415f201b41c920033a49303 (diff)
parent006a42a9cb173cefe32d169c46748d6f00c41315 (diff)
downloadsrc-3caf0790a80c2e10c82a3a07719cddb2065c65d1.tar.gz
src-3caf0790a80c2e10c82a3a07719cddb2065c65d1.zip
Merge head@256284
Notes
Notes: svn path=/projects/bmake/; revision=256424
Diffstat (limited to 'sbin/route')
-rw-r--r--sbin/route/route.c5
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