summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorsetje <none@none>2007-06-28 20:42:17 -0700
committersetje <none@none>2007-06-28 20:42:17 -0700
commitce51a4a0cae25691927f1d230536b5d994f59ac3 (patch)
tree634ebf6cb6caa4667fea65fa9a828d281c5b5fe7 /usr/src
parent7f6e74f87a0d408cc0506465f5326b70afa575f0 (diff)
downloadillumos-joyent-ce51a4a0cae25691927f1d230536b5d994f59ac3.tar.gz
6568980 uninitialized variable in strplumb_get_netdev_path() makes dhcp adoption unreliable
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/io/strplumb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/uts/common/io/strplumb.c b/usr/src/uts/common/io/strplumb.c
index 0c7d6d50f2..dd7276bcd1 100644
--- a/usr/src/uts/common/io/strplumb.c
+++ b/usr/src/uts/common/io/strplumb.c
@@ -704,6 +704,7 @@ strplumb_get_netdev_path(void)
/* encode to ascii string to match what sparc OBP exports */
dhcack = kmem_zalloc(bootp_len * 2 + IFNAMSIZ + 2, KM_SLEEP);
+ len = bootp_len * 2 + 2;
(void) octet_to_hexascii(bootp, bootp_len, dhcack + IFNAMSIZ,
&len);
ASSERT(len < bootp_len * 2 + 2);