Blame SOURCES/net-snmp-5.8-trapsink.patch

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