Blame SOURCES/net-snmp-5.8-trapsink.patch
|
|
ea601b |
diff -urNp old/snmplib/transports/snmpUDPIPv4BaseDomain.c new/snmplib/transports/snmpUDPIPv4BaseDomain.c
|
|
|
ea601b |
--- old/snmplib/transports/snmpUDPIPv4BaseDomain.c 2019-06-27 08:40:48.663969034 +0200
|
|
|
ea601b |
+++ new/snmplib/transports/snmpUDPIPv4BaseDomain.c 2019-06-27 08:42:05.293723487 +0200
|
|
|
ea601b |
@@ -317,7 +317,7 @@ netsnmp_udpipv4base_tspec_transport(nets
|
|
|
ea601b |
if (NULL != tspec->source) {
|
|
|
ea601b |
struct sockaddr_in src_addr, *srcp = &src_addr;
|
|
|
ea601b |
/** get sockaddr from source */
|
|
|
ea601b |
- if (!netsnmp_sockaddr_in2(&src_addr, tspec->source, NULL))
|
|
|
ea601b |
+ if (!netsnmp_sockaddr_in2(&src_addr, tspec->source, ":0"))
|
|
|
ea601b |
return NULL;
|
|
|
ea601b |
return netsnmp_udpipv4base_transport_with_source(&addr, local, srcp);
|
|
|
ea601b |
} else {
|
|
|
ea601b |
@@ -364,7 +364,7 @@ netsnmp_udpipv4base_transport(const stru
|
|
|
ea601b |
strcat(client_address, ":0");
|
|
|
ea601b |
have_port = 1;
|
|
|
ea601b |
}
|
|
|
ea601b |
- rc = netsnmp_sockaddr_in2(&client_addr, client_socket, NULL);
|
|
|
ea601b |
+ rc = netsnmp_sockaddr_in2(&client_addr, client_socket, ":0");
|
|
|
ea601b |
if (client_address != client_socket)
|
|
|
ea601b |
free(client_address);
|
|
|
ea601b |
if(rc) {
|