diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-02-23 09:37:34 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-02-23 09:38:22 +0000 |
commit | 287f3b6a4204a6f89ea28eb441eab17c4550a63b (patch) | |
tree | aa18a6e99ee5d323ad6f084b71a6b4276e456b32 /main/net-snmp/netsnmp-swinst-crash.patch | |
parent | 5c262e42bd69c61ae9f25ce6d32aaa4f7f673a06 (diff) | |
download | aports-287f3b6a4204a6f89ea28eb441eab17c4550a63b.tar.bz2 aports-287f3b6a4204a6f89ea28eb441eab17c4550a63b.tar.xz |
main/net-snmp: upgrade to 5.7.3
Diffstat (limited to 'main/net-snmp/netsnmp-swinst-crash.patch')
-rw-r--r-- | main/net-snmp/netsnmp-swinst-crash.patch | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/main/net-snmp/netsnmp-swinst-crash.patch b/main/net-snmp/netsnmp-swinst-crash.patch index 5502ddb28a..58c368facc 100644 --- a/main/net-snmp/netsnmp-swinst-crash.patch +++ b/main/net-snmp/netsnmp-swinst-crash.patch @@ -1,12 +1,13 @@ ---- 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; +--- a/agent/mibgroup/host/data_access/swinst_pkginfo.c.orig ++++ b/agent/mibgroup/host/data_access/swinst_pkginfo.c +@@ -207,7 +207,9 @@ + memcpy( entry->swDate, cp, date_len ); + entry->swDate_len = date_len; + } +- closedir( d ); ++ if (d != NULL) ++ closedir( d ); ++ + #ifdef HAVE_LIBPKG } -- closedir( d ); -+ if (d != NULL) -+ closedir( d ); - - DEBUGMSGTL(("swinst:load:arch"," loaded %d entries\n", - (int)CONTAINER_SIZE(container))); + #endif |