diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-11-11 11:18:37 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-11-11 16:00:43 +0000 |
commit | fa3fb681c8a5aca2c62c4ab93826b1ffe5948aa8 (patch) | |
tree | 24fb4580a38fd64c319623f0ae603ab423d7165f /main/net-snmp/netsnmp-swinst-crash.patch | |
parent | 6c89bd6869f01c56b74b3bd62574947d497acf7f (diff) | |
download | aports-fa3fb681c8a5aca2c62c4ab93826b1ffe5948aa8.tar.bz2 aports-fa3fb681c8a5aca2c62c4ab93826b1ffe5948aa8.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
(cherry picked from commit ac22212e8d4e2af30b3a2a2c898ae4664ea796f6)
Diffstat (limited to 'main/net-snmp/netsnmp-swinst-crash.patch')
-rw-r--r-- | main/net-snmp/netsnmp-swinst-crash.patch | 12 |
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 000000000..5502ddb28 --- /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))); |