Date: Mon, 23 Sep 2013 18:12:25 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255821 - head/usr.sbin/arp Message-ID: <201309231812.r8NICPq5073076@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Mon Sep 23 18:12:25 2013 New Revision: 255821 URL: http://svnweb.freebsd.org/changeset/base/255821 Log: Fix coredump on 'arp -d'. Submitted by: az Approved by: re (kib) Modified: head/usr.sbin/arp/arp.c Modified: head/usr.sbin/arp/arp.c ============================================================================== --- head/usr.sbin/arp/arp.c Mon Sep 23 18:12:19 2013 (r255820) +++ head/usr.sbin/arp/arp.c Mon Sep 23 18:12:25 2013 (r255821) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309231812.r8NICPq5073076>