summaryrefslogtreecommitdiff
path: root/usr/src/cmd/picl
diff options
context:
space:
mode:
authorKelly Moyer <Kelly.Moyer@Sun.COM>2008-12-19 00:23:31 -0800
committerKelly Moyer <Kelly.Moyer@Sun.COM>2008-12-19 00:23:31 -0800
commitc8268b2c32246a4fd927df00921c772baab114e0 (patch)
tree9b59e0d1effdf1e0e42814dca684a1929c81004d /usr/src/cmd/picl
parente6c3f3bbefebef874130b2cdad5af189f5102b11 (diff)
downloadillumos-joyent-c8268b2c32246a4fd927df00921c772baab114e0.tar.gz
6772786 picld is core dumping on snv_101a
6785274 sun4v picl snmp plugin lacks NULL terminator in struct list
Diffstat (limited to 'usr/src/cmd/picl')
-rw-r--r--usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c2
-rw-r--r--usr/src/cmd/picl/plugins/sun4v/snmp/snmpplugin.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c b/usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
index ca66fec8b3..61c73b94f7 100644
--- a/usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
+++ b/usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
@@ -1380,7 +1380,7 @@ refreshq_realloc(int hint)
/* Copy the jobs from the beginning of the old array */
(void) memcpy((void *) &(p[tail_jobs]),
- (void *) &(refreshq[refreshq_next_job]),
+ (void *) &(refreshq[0]),
head_jobs * sizeof (refreshq_job_t));
/* update the job and slot indices to match */
diff --git a/usr/src/cmd/picl/plugins/sun4v/snmp/snmpplugin.c b/usr/src/cmd/picl/plugins/sun4v/snmp/snmpplugin.c
index d1387aebf1..623997cb46 100644
--- a/usr/src/cmd/picl/plugins/sun4v/snmp/snmpplugin.c
+++ b/usr/src/cmd/picl/plugins/sun4v/snmp/snmpplugin.c
@@ -165,6 +165,7 @@ static char *group3[] = {
static char *group4[] = {
OID_sunPlatBinarySensorInterpretTrue,
OID_sunPlatBinarySensorInterpretFalse,
+ 0
};
static char *volgroup1[] = {