aboutsummaryrefslogtreecommitdiffstats
path: root/main/net-snmp/netsnmp-swinst-crash.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-11-11 11:18:37 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-11-11 11:18:37 +0200
commitac22212e8d4e2af30b3a2a2c898ae4664ea796f6 (patch)
tree3a57548a2367592fa3bcddcf8d64320e004488be /main/net-snmp/netsnmp-swinst-crash.patch
parent0389c0810effbe38de6d05d68e3ab6bb08a8aaef (diff)
downloadaports-ac22212e8d4e2af30b3a2a2c898ae4664ea796f6.tar.bz2
aports-ac22212e8d4e2af30b3a2a2c898ae4664ea796f6.tar.xz
main/net-snmp: add some snmpd MIB implementation fixes
* IP-MIB::ipNetToPhysicalPhysAddress is fixed to display data properly even after first time * swinst patch prevents a crash during snmpwalk in default install
Diffstat (limited to 'main/net-snmp/netsnmp-swinst-crash.patch')
-rw-r--r--main/net-snmp/netsnmp-swinst-crash.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/net-snmp/netsnmp-swinst-crash.patch b/main/net-snmp/netsnmp-swinst-crash.patch
new file mode 100644
index 0000000000..5502ddb28a
--- /dev/null
+++ b/main/net-snmp/netsnmp-swinst-crash.patch
@@ -0,0 +1,12 @@
+--- net-snmp-5.7.1/agent/mibgroup/host/data_access/swinst_pkginfo.c
++++ /home/fabled//net-snmp-5.7.1.patched/agent/mibgroup/host/data_access/swinst_pkginfo.c
+@@ -140,7 +140,8 @@
+ memcpy( entry->swDate, cp, date_len );
+ entry->swDate_len = date_len;
+ }
+- closedir( d );
++ if (d != NULL)
++ closedir( d );
+
+ DEBUGMSGTL(("swinst:load:arch"," loaded %d entries\n",
+ (int)CONTAINER_SIZE(container)));