summaryrefslogtreecommitdiff
path: root/user/net-snmp/netsnmp-swinst-crash.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-22 04:09:08 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-22 04:09:08 -0500
commit2fb8795e48ba6ad3943c09fa06cffea1690519e7 (patch)
tree59b4bd9bc93f46fa2d84efa916e99f1011011337 /user/net-snmp/netsnmp-swinst-crash.patch
parent2a080de5c02254e5e610ab81b2127413e8aabe7b (diff)
downloadpackages-2fb8795e48ba6ad3943c09fa06cffea1690519e7.tar.gz
packages-2fb8795e48ba6ad3943c09fa06cffea1690519e7.tar.bz2
packages-2fb8795e48ba6ad3943c09fa06cffea1690519e7.tar.xz
packages-2fb8795e48ba6ad3943c09fa06cffea1690519e7.zip
user/net-snmp: pull in, fix another wildly inaccurate license, misc
Diffstat (limited to 'user/net-snmp/netsnmp-swinst-crash.patch')
-rw-r--r--user/net-snmp/netsnmp-swinst-crash.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/user/net-snmp/netsnmp-swinst-crash.patch b/user/net-snmp/netsnmp-swinst-crash.patch
new file mode 100644
index 000000000..58c368fac
--- /dev/null
+++ b/user/net-snmp/netsnmp-swinst-crash.patch
@@ -0,0 +1,13 @@
+--- 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
+ }
+ #endif