aboutsummaryrefslogtreecommitdiffstats
path: root/main/net-snmp/netsnmp-swinst-crash.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-02-23 09:37:34 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-02-23 09:38:22 +0000
commit287f3b6a4204a6f89ea28eb441eab17c4550a63b (patch)
treeaa18a6e99ee5d323ad6f084b71a6b4276e456b32 /main/net-snmp/netsnmp-swinst-crash.patch
parent5c262e42bd69c61ae9f25ce6d32aaa4f7f673a06 (diff)
downloadaports-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.patch23
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