Blob Blame History Raw
diff -urNp a/snmplib/transports/snmpUDPBaseDomain.c b/snmplib/transports/snmpUDPBaseDomain.c
--- a/snmplib/transports/snmpUDPBaseDomain.c	2023-08-10 09:44:40.306822948 +0200
+++ b/snmplib/transports/snmpUDPBaseDomain.c	2023-08-10 09:46:37.161714093 +0200
@@ -212,7 +212,7 @@ int netsnmp_udpbase_sendto(int fd, struc
         }
 
         rc = sendmsg(fd, &m, NETSNMP_NOSIGNAL|NETSNMP_DONTWAIT);
-        if (rc >= 0 || errno != EINVAL)
+        if (rc >= 0 || (errno != EINVAL && errno != ENETUNREACH))
             return rc;
 
         /*