diff options
| author | setje <none@none> | 2007-06-28 20:42:17 -0700 |
|---|---|---|
| committer | setje <none@none> | 2007-06-28 20:42:17 -0700 |
| commit | ce51a4a0cae25691927f1d230536b5d994f59ac3 (patch) | |
| tree | 634ebf6cb6caa4667fea65fa9a828d281c5b5fe7 /usr/src | |
| parent | 7f6e74f87a0d408cc0506465f5326b70afa575f0 (diff) | |
| download | illumos-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.c | 1 |
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); |
