diff options
author | glebius <glebius@FreeBSD.org> | 2013-09-23 18:12:25 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-09-23 18:12:25 +0000 |
commit | d232e740fa1fdf064d937d9d03973d715bcb27f7 (patch) | |
tree | 748e440b0427a303361271f1f62782634e32ec62 | |
parent | 56573b50a653966ac9e8142886a52014c68654fa (diff) | |
download | FreeBSD-src-d232e740fa1fdf064d937d9d03973d715bcb27f7.zip FreeBSD-src-d232e740fa1fdf064d937d9d03973d715bcb27f7.tar.gz |
Fix coredump on 'arp -d'.
Submitted by: az
Approved by: re (kib)
-rw-r--r-- | usr.sbin/arp/arp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index 8bdd555..25fbb23 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -187,8 +187,11 @@ main(int argc, char *argv[]) if (argc != 0) usage(); search(0, nuke_entry); - } else + } else { + if (argc != 1) + usage(); rtn = delete(argv[0]); + } break; case F_FILESET: if (argc != 1) |