From owner-freebsd-bugs Fri Oct 20 0:40: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5EDA437B4D7 for ; Fri, 20 Oct 2000 00:40:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA45970; Fri, 20 Oct 2000 00:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id D9ED737B4D7; Fri, 20 Oct 2000 00:36:20 -0700 (PDT) Message-Id: <20001020073620.D9ED737B4D7@hub.freebsd.org> Date: Fri, 20 Oct 2000 00:36:20 -0700 (PDT) From: sethk@osd.bsdi.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/22143: [PATCH] wicontrol(9) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22143 >Category: bin >Synopsis: [PATCH] wicontrol(9) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 20 00:40:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Seth Kingsley >Release: 5.0-CURRENT >Organization: >Environment: FreeBSD veritech.osd.bsdi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #4: Thu Oct 19 00:14:24 PDT 2000 root@veritech:/usr/src/sys/compile/VERITECH i386 >Description: The wicontrol utility fails to detect that no interface has been specified when using the -e option as it does for other options. Pretty self-explanitory. >How-To-Repeat: wicontrol -e 1 >Fix: =================================================================== RCS file: /ncvs/src/usr.sbin/wicontrol/wicontrol.c,v retrieving revision 1.13 diff -u -r1.13 wicontrol.c --- wicontrol.c 2000/09/21 00:25:07 1.13 +++ wicontrol.c 2000/10/20 06:58:14 @@ -208,6 +208,9 @@ { struct wi_req wreq; + if (iface == NULL) + errx(1, "must specify interface name"); + bzero((char *)&wreq, sizeof(wreq)); wreq.wi_type = code; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message