summaryrefslogtreecommitdiff
path: root/net/nmap/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'net/nmap/patches/patch-ad')
-rw-r--r--net/nmap/patches/patch-ad4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/nmap/patches/patch-ad b/net/nmap/patches/patch-ad
index a559835c735..bbb514329ec 100644
--- a/net/nmap/patches/patch-ad
+++ b/net/nmap/patches/patch-ad
@@ -1,4 +1,4 @@
-$NetBSD: patch-ad,v 1.14 2010/03/21 21:58:23 pettai Exp $
+$NetBSD: patch-ad,v 1.15 2010/03/27 13:37:34 pettai Exp $
Correct handling of the length of data returned by SIOCGIFCONF. The
actual length of each item is never less than sizeof(struct ifreq), but
@@ -40,7 +40,7 @@ had two problems:
+ data extends beyond the end of ifr_ifru. */
len = sizeof(struct ifreq);
+#if HAVE_SOCKADDR_SA_LEN
-+ len = ifr->ifr_addr.sa_len > sizeof(ifr->ifr_name);
++ if (ifr->ifr_addr.sa_len > sizeof(ifr->ifr_ifru))
+ len += (ifr->ifr_addr.sa_len - sizeof(ifr->ifr_ifru));
#endif