From owner-svn-src-head@FreeBSD.ORG Mon Aug 18 08:07:51 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 241AE5B3; Mon, 18 Aug 2014 08:07:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10661387C; Mon, 18 Aug 2014 08:07:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s7I87orX031748; Mon, 18 Aug 2014 08:07:50 GMT (envelope-from melifaro@FreeBSD.org) Received: (from melifaro@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s7I87oQ1031747; Mon, 18 Aug 2014 08:07:50 GMT (envelope-from melifaro@FreeBSD.org) Message-Id: <201408180807.s7I87oQ1031747@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: melifaro set sender to melifaro@FreeBSD.org using -f From: "Alexander V. Chernikov" Date: Mon, 18 Aug 2014 08:07:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r270129 - head/sbin/ifconfig X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2014 08:07:51 -0000 Author: melifaro Date: Mon Aug 18 08:07:50 2014 New Revision: 270129 URL: http://svnweb.freebsd.org/changeset/base/270129 Log: Zero buffer before request. Modified: head/sbin/ifconfig/sfp.c Modified: head/sbin/ifconfig/sfp.c ============================================================================== --- head/sbin/ifconfig/sfp.c Mon Aug 18 05:22:09 2014 (r270128) +++ head/sbin/ifconfig/sfp.c Mon Aug 18 08:07:50 2014 (r270129) @@ -451,6 +451,7 @@ read_i2c_ixgbe(struct i2c_info *ii, uint for (i = 0; i < len; i += 1) { ixreq.offset = off + i; ixreq.len = 1; + ixreq.data[0] = '\0'; if (ioctl(ii->s, SIOCGI2C, ii->ifr) != 0) { ii->error = errno;