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