svn commit: r270129 - head/sbin/ifconfig

Alexander V. Chernikov melifaro at FreeBSD.org
Mon Aug 18 08:07:51 UTC 2014


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;


More information about the svn-src-head mailing list