net-snmp/net-snmp-5.5.0_gcc45.patch

39 lines
1.6 KiB
Diff
Raw Normal View History

Index: agent/mibgroup/hardware/sensors/hw_sensors.c
===================================================================
--- agent/mibgroup/hardware/sensors/hw_sensors.c.orig
+++ agent/mibgroup/hardware/sensors/hw_sensors.c
@@ -107,6 +107,7 @@ static int
_sensor_load( void )
{
netsnmp_sensor_arch_load( NULL, NULL );
+ return 0;
}
/*
Index: agent/mibgroup/ip-mib/data_access/defaultrouter_common.c
===================================================================
--- agent/mibgroup/ip-mib/data_access/defaultrouter_common.c.orig
+++ agent/mibgroup/ip-mib/data_access/defaultrouter_common.c
@@ -169,7 +169,7 @@ netsnmp_access_defaultrouter_entry_creat
rc = netsnmp_arch_defaultrouter_entry_init(entry);
if (SNMP_ERR_NOERROR != rc) {
- DEBUGMSGT(("access:defaultrouter:create","error %d in arch init\n"));
+ DEBUGMSGT(("access:defaultrouter:create","error %d in arch init\n", rc));
netsnmp_access_defaultrouter_entry_free(entry);
entry = NULL;
}
Index: agent/mibgroup/ucd-snmp/pass.c
===================================================================
--- agent/mibgroup/ucd-snmp/pass.c.orig
+++ agent/mibgroup/ucd-snmp/pass.c
@@ -588,7 +588,7 @@ setPass(int action,
buf[ sizeof(buf)-1 ] = 0;
break;
}
- strncat(passthru->command, buf, sizeof(passthru->command));
+ strncat(passthru->command, buf, sizeof(passthru->command)-1);
passthru->command[ sizeof(passthru->command)-1 ] = 0;
DEBUGMSGTL(("ucd-snmp/pass", "pass-running: %s",
passthru->command));