aboutsummaryrefslogtreecommitdiff
path: root/net/hping3/patches/hping3-getifnamedebug.patch
blob: 6c9e92b67e3d9fd72a8b68a817dbf8af10d0f25f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/getifname.c
+++ b/getifname.c
@@ -59,7 +59,7 @@ int get_if_name(void)
 			known_output_if = 1;
 			if (opt_debug)
 				printf("DEBUG: Output interface address: %s\n",
-					inet_ntoa(sa.sin_addr));
+					inet_ntoa(output_if_addr.sin_addr));
 		} else {
 			fprintf(stderr, "Warning: Unable to guess the output "
 					"interface\n");