mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
Fix the bug when the user specs the source address as the tun0/ppp0
link. Submitted by: jmb
This commit is contained in:
parent
228772c2fe
commit
2abd784be1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=14962
20
security/nmap/files/patch-ab
Normal file
20
security/nmap/files/patch-ab
Normal file
@ -0,0 +1,20 @@
|
||||
--- tcpip.c.orig Sun Nov 29 10:00:13 1998
|
||||
+++ tcpip.c Sun Nov 29 10:00:51 1998
|
||||
@@ -563,7 +563,7 @@
|
||||
if (ifc.ifc_len == 0)
|
||||
fatal("SIOCGIFCONF claims you have no network interfaces!\n");
|
||||
#if HAVE_SOCKADDR_SA_LEN
|
||||
- len = MAX(sizeof(struct sockaddr), ifr->ifr_addr.sa_len);
|
||||
+ len = ifr->ifr_addr.sa_len;
|
||||
#else
|
||||
len = sizeof(SA);
|
||||
#endif
|
||||
@@ -581,6 +581,7 @@
|
||||
dev[63] = '\0';
|
||||
return 1;
|
||||
}
|
||||
+ len = ifr->ifr_addr.sa_len;
|
||||
}
|
||||
/* Shucks, we didn't find it ... */
|
||||
dev[0] = '\0';
|
||||
|
20
security/nmapfe/files/patch-ab
Normal file
20
security/nmapfe/files/patch-ab
Normal file
@ -0,0 +1,20 @@
|
||||
--- tcpip.c.orig Sun Nov 29 10:00:13 1998
|
||||
+++ tcpip.c Sun Nov 29 10:00:51 1998
|
||||
@@ -563,7 +563,7 @@
|
||||
if (ifc.ifc_len == 0)
|
||||
fatal("SIOCGIFCONF claims you have no network interfaces!\n");
|
||||
#if HAVE_SOCKADDR_SA_LEN
|
||||
- len = MAX(sizeof(struct sockaddr), ifr->ifr_addr.sa_len);
|
||||
+ len = ifr->ifr_addr.sa_len;
|
||||
#else
|
||||
len = sizeof(SA);
|
||||
#endif
|
||||
@@ -581,6 +581,7 @@
|
||||
dev[63] = '\0';
|
||||
return 1;
|
||||
}
|
||||
+ len = ifr->ifr_addr.sa_len;
|
||||
}
|
||||
/* Shucks, we didn't find it ... */
|
||||
dev[0] = '\0';
|
||||
|
20
security/zenmap/files/patch-ab
Normal file
20
security/zenmap/files/patch-ab
Normal file
@ -0,0 +1,20 @@
|
||||
--- tcpip.c.orig Sun Nov 29 10:00:13 1998
|
||||
+++ tcpip.c Sun Nov 29 10:00:51 1998
|
||||
@@ -563,7 +563,7 @@
|
||||
if (ifc.ifc_len == 0)
|
||||
fatal("SIOCGIFCONF claims you have no network interfaces!\n");
|
||||
#if HAVE_SOCKADDR_SA_LEN
|
||||
- len = MAX(sizeof(struct sockaddr), ifr->ifr_addr.sa_len);
|
||||
+ len = ifr->ifr_addr.sa_len;
|
||||
#else
|
||||
len = sizeof(SA);
|
||||
#endif
|
||||
@@ -581,6 +581,7 @@
|
||||
dev[63] = '\0';
|
||||
return 1;
|
||||
}
|
||||
+ len = ifr->ifr_addr.sa_len;
|
||||
}
|
||||
/* Shucks, we didn't find it ... */
|
||||
dev[0] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user