diff options
author | asami <asami@FreeBSD.org> | 1998-11-30 07:02:39 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1998-11-30 07:02:39 +0800 |
commit | 56fd131a88e94c602ca2c1dca96c1ab31396bcc3 (patch) | |
tree | cb0798050695473ae2202b0847c191d9eff2b8f6 /security | |
parent | 557166f7a6517dddcf27947f4d1a794734af0231 (diff) | |
download | freebsd-ports-gnome-56fd131a88e94c602ca2c1dca96c1ab31396bcc3.tar.gz freebsd-ports-gnome-56fd131a88e94c602ca2c1dca96c1ab31396bcc3.tar.zst freebsd-ports-gnome-56fd131a88e94c602ca2c1dca96c1ab31396bcc3.zip |
Fix the bug when the user specs the source address as the tun0/ppp0
link.
Submitted by: jmb
Diffstat (limited to 'security')
-rw-r--r-- | security/nmap/files/patch-ab | 20 | ||||
-rw-r--r-- | security/nmapfe/files/patch-ab | 20 | ||||
-rw-r--r-- | security/zenmap/files/patch-ab | 20 |
3 files changed, 60 insertions, 0 deletions
diff --git a/security/nmap/files/patch-ab b/security/nmap/files/patch-ab new file mode 100644 index 000000000000..31f021337ce0 --- /dev/null +++ b/security/nmap/files/patch-ab @@ -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'; + diff --git a/security/nmapfe/files/patch-ab b/security/nmapfe/files/patch-ab new file mode 100644 index 000000000000..31f021337ce0 --- /dev/null +++ b/security/nmapfe/files/patch-ab @@ -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'; + diff --git a/security/zenmap/files/patch-ab b/security/zenmap/files/patch-ab new file mode 100644 index 000000000000..31f021337ce0 --- /dev/null +++ b/security/zenmap/files/patch-ab @@ -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'; + |