Date: Mon, 18 Aug 2014 08:07:50 +0000 (UTC) From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r270129 - head/sbin/ifconfig Message-ID: <201408180807.s7I87oQ1031747@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408180807.s7I87oQ1031747>