summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
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);