From e2bdece8ca925a8d2d92a7f168282b7d88b421b3 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 12 2017 10:06:03 +0000 Subject: import net-snmp-5.7.2-24.el7_3.2 --- diff --git a/SOURCES/net-snmp-5.7.2-agentx-disconnect-crash-part2.patch b/SOURCES/net-snmp-5.7.2-agentx-disconnect-crash-part2.patch new file mode 100644 index 0000000..cfece15 --- /dev/null +++ b/SOURCES/net-snmp-5.7.2-agentx-disconnect-crash-part2.patch @@ -0,0 +1,11 @@ +diff -urNp old/agent/mibgroup/agentx/master.c new/agent/mibgroup/agentx/master.c +--- old/agent/mibgroup/agentx/master.c 2017-03-29 11:33:29.643295606 +0200 ++++ new/agent/mibgroup/agentx/master.c 2017-03-29 11:36:56.532670645 +0200 +@@ -222,7 +222,7 @@ agentx_got_response(int operation, + /* response is too late, free the cache */ + if (magic) + netsnmp_free_delegated_cache((netsnmp_delegated_cache*) magic); +- return 0; ++ return 1; + } + requests = cache->requests; diff --git a/SPECS/net-snmp.spec b/SPECS/net-snmp.spec index f3f00bb..4364b65 100644 --- a/SPECS/net-snmp.spec +++ b/SPECS/net-snmp.spec @@ -11,7 +11,7 @@ Summary: A collection of SNMP protocol tools and libraries Name: net-snmp Version: 5.7.2 -Release: 24%{?dist}.1 +Release: 24%{?dist}.2 Epoch: 1 License: BSD @@ -89,6 +89,7 @@ Patch52: net-snmp-5.5-sensors-duplicate.patch Patch53: net-snmp-5.7.2-extend-close.patch Patch54: net-snmp-5.7.2-python-addr-size.patch Patch55: net-snmp-5.7.2-dot3-leak.patch +Patch56: net-snmp-5.7.2-agentx-disconnect-crash-part2.patch Requires(post): chkconfig Requires(preun): chkconfig @@ -296,6 +297,7 @@ The net-snmp-sysvinit package provides SysV init scripts for Net-SNMP daemons. %patch53 -p1 -b .extend-close %patch54 -p1 -b .python-addr-size %patch55 -p1 -b .dot3-leak +%patch56 -p1 -b .agentx-disconnect-crash-part-2 %ifarch sparc64 s390 s390x # disable failing test - see https://bugzilla.redhat.com/show_bug.cgi?id=680697 @@ -591,6 +593,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_initrddir}/snmptrapd %changelog +* Thu Mar 30 2017 Josef Ridky - 1:5.7.2-24.2 +- Fixed issue with agentx disconnect crash (#1437346) + * Fri Mar 18 2016 Jan Safranek - 1:5.7.2-24.1 - Fixed memory leak in ETHERLIKE-MIB (#1305933)