From fe5273536e2608da72f02e2c998744fcbf8d77c2 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 14 Dec 2021 11:25:13 +0000 Subject: [PATCH] import net-snmp-5.8-24.el8 --- SOURCES/net-snmp-5.8-util-fix.patch | 13 +++++++++++++ SPECS/net-snmp.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 SOURCES/net-snmp-5.8-util-fix.patch diff --git a/SOURCES/net-snmp-5.8-util-fix.patch b/SOURCES/net-snmp-5.8-util-fix.patch new file mode 100644 index 0000000..3b73b45 --- /dev/null +++ b/SOURCES/net-snmp-5.8-util-fix.patch @@ -0,0 +1,13 @@ +diff -urNp a/snmplib/cert_util.c b/snmplib/cert_util.c +--- a/snmplib/cert_util.c 2021-12-09 08:45:23.217942229 +0100 ++++ b/snmplib/cert_util.c 2021-12-09 08:46:56.567562352 +0100 +@@ -1368,8 +1368,7 @@ _add_certfile(const char* dirname, const + + okey = PEM_read_bio_PrivateKey(certbio, NULL, NULL, NULL); + if (NULL == okey) +- snmp_log(LOG_ERR, "error parsing key file %s\n", +- key->info.filename); ++ snmp_log(LOG_ERR, "error parsing key file %s\n", filename); + else { + key = _add_key(okey, dirname, filename, index); + if (NULL == key) { diff --git a/SPECS/net-snmp.spec b/SPECS/net-snmp.spec index ae5422c..532aec5 100644 --- a/SPECS/net-snmp.spec +++ b/SPECS/net-snmp.spec @@ -10,7 +10,7 @@ Summary: A collection of SNMP protocol tools and libraries Name: net-snmp Version: 5.8 -Release: 23%{?dist} +Release: 24%{?dist} Epoch: 1 License: BSD @@ -69,6 +69,7 @@ Patch40: net-snmp-5.8-intermediate-certs.patch Patch41: net-snmp-5.8-fix-cert-crash.patch Patch42: net-snmp-5.8-engine-id.patch Patch43: net-snmp-5.8-certs.patch +Patch44: net-snmp-5.8-util-fix.patch # Modern RPM API means at least EL6 Patch101: net-snmp-5.8-modern-rpm-api.patch @@ -237,6 +238,7 @@ rm -r python %patch41 -p1 -b .fix-cert-crash %patch42 -p1 -b .engine-id %patch43 -p1 -b .certs +%patch44 -p1 -b .utils %patch101 -p1 -b .modern-rpm-api @@ -491,6 +493,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test %{_libdir}/libnetsnmptrapd*.so.%{soname}* %changelog +* Thu Dec 09 2021 Josef Ridky - 1:5.8-24 +- fix dereferencing null pointer (#2021403) + * Mon Oct 11 2021 Josef Ridky - 1:5.8-23 - net-snmp-cert gencert create SHA512 (#1908331)