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; _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"