Resolves: #1673272 - fix IPv6 address assignment from clientaddr option
This commit is contained in:
parent
a8f57f7b85
commit
cbcf8637b1
12
net-snmp-5.8-ipv6-clientaddr.patch
Normal file
12
net-snmp-5.8-ipv6-clientaddr.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -urNp a/snmplib/transports/snmpUDPIPv6Domain.c b/snmplib/transports/snmpUDPIPv6Domain.c
|
||||
--- a/snmplib/transports/snmpUDPIPv6Domain.c 2019-01-24 09:03:05.606441678 +0100
|
||||
+++ b/snmplib/transports/snmpUDPIPv6Domain.c 2019-02-07 08:59:26.434587244 +0100
|
||||
@@ -464,7 +464,7 @@ netsnmp_udp6_transport(const struct sock
|
||||
NETSNMP_DS_LIB_CLIENT_ADDR);
|
||||
if (client_socket) {
|
||||
struct sockaddr_in6 client_addr;
|
||||
- if(!netsnmp_sockaddr_in6_2(&client_addr, client_socket, NULL)) {
|
||||
+ if(netsnmp_sockaddr_in6_2(&client_addr, client_socket, NULL)) {
|
||||
return netsnmp_udp6_transport_with_source(addr, local,
|
||||
&client_addr);
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
Summary: A collection of SNMP protocol tools and libraries
|
||||
Name: net-snmp
|
||||
Version: 5.8
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Epoch: 1
|
||||
|
||||
License: BSD
|
||||
@ -41,6 +41,7 @@ Patch11: net-snmp-5.7.3-iterator-fix.patch
|
||||
Patch12: net-snmp-5.8-autofs-skip.patch
|
||||
Patch13: net-snmp-5.8-key-leak-backport.patch
|
||||
Patch14: net-snmp-5.8-python-ld-flags.patch
|
||||
Patch15: net-snmp-5.8-ipv6-clientaddr.patch
|
||||
|
||||
# Modern RPM API means at least EL6
|
||||
Patch101: net-snmp-5.8-modern-rpm-api.patch
|
||||
@ -209,6 +210,7 @@ cp %{SOURCE10} .
|
||||
%patch12 -p1 -b .autofs-skip
|
||||
%patch13 -p1 -b .leak-backport
|
||||
%patch14 -p1 -b .python-ld-flags
|
||||
%patch15 -p1 -b .ipv6-clientaddr
|
||||
|
||||
%patch101 -p1 -b .modern-rpm-api
|
||||
%patch102 -p1
|
||||
@ -479,6 +481,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test
|
||||
%{_libdir}/libnetsnmptrapd*.so.%{soname}*
|
||||
|
||||
%changelog
|
||||
* Thu Feb 07 2019 Josef Ridky <jridky@redhat.com> - 1:5.8-4
|
||||
- fix IPv6 address assignment for clientaddr option (#1673272)
|
||||
|
||||
* Tue Nov 27 2018 Josef Ridky <jridky@redhat.com> - 1:5.8-3
|
||||
- backport memory leak fixes from upstream
|
||||
- add fPIE to CFLAGS (#1543853)
|
||||
|
Loading…
Reference in New Issue
Block a user