diff options
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))); |