View | Details | Raw Unified | Return to bug 248647
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	fping
4
PORTNAME=	fping
5
PORTVERSION=	5.0
5
PORTVERSION=	5.0
6
PORTREVISION=	1
6
CATEGORIES=	net
7
CATEGORIES=	net
7
MASTER_SITES=	http://fping.org/dist/ \
8
MASTER_SITES=	http://fping.org/dist/ \
8
		https://github.com/schweikert/${PORTNAME}/releases/download/v${PORTVERSION}/
9
		https://github.com/schweikert/${PORTNAME}/releases/download/v${PORTVERSION}/
(-)files/patch-fping.c (+16 lines)
Line 0 Link Here
1
--- src/fping.c.orig	2020-08-05 11:10:13 UTC
2
+++ src/fping.c
3
@@ -1060,11 +1060,11 @@ int main(int argc, char** argv)
4
         exit(num_noaddress ? 2 : 1);
5
     }
6
 
7
-    if (socket4 >= 0) {
8
+    if (src_addr_set && socket4 >= 0) {
9
         socket_set_src_addr_ipv4(socket4, &src_addr, (socktype4 == SOCK_DGRAM) ? &ident4 : NULL);
10
     }
11
 #ifdef IPV6
12
-    if (socket6 >= 0) {
13
+    if (src_addr6_set && socket6 >= 0) {
14
         socket_set_src_addr_ipv6(socket6, &src_addr6, (socktype6 == SOCK_DGRAM) ? &ident6 : NULL);
15
     }
16
 #endif

Return to bug 248647