summaryrefslogtreecommitdiff
path: root/security/nmap-devel/files/patch-libdnet-stripped_src_intf.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2024-03-28 13:23:34 -0700
committerCy Schubert <cy@FreeBSD.org>2024-03-28 13:53:59 -0700
commitc89426b1f238e3ad79444ac311cd9d11fd86ac5f (patch)
tree68b050a6f59a21c82903eed91105fc1091e4df9a /security/nmap-devel/files/patch-libdnet-stripped_src_intf.c
parentsecurity/nmap: Use internal pcre (diff)
security/nmap-devel: New port
Introduce nmap development port. The development branch includes prerequisite updates including the pcre2 replacement of pcre. This port tracks the nmap/nmap github repo.
Diffstat (limited to 'security/nmap-devel/files/patch-libdnet-stripped_src_intf.c')
-rw-r--r--security/nmap-devel/files/patch-libdnet-stripped_src_intf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/nmap-devel/files/patch-libdnet-stripped_src_intf.c b/security/nmap-devel/files/patch-libdnet-stripped_src_intf.c
new file mode 100644
index 000000000000..188374dfaaee
--- /dev/null
+++ b/security/nmap-devel/files/patch-libdnet-stripped_src_intf.c
@@ -0,0 +1,11 @@
+--- libdnet-stripped/src/intf.c.orig 2016-07-27 20:11:27 UTC
++++ libdnet-stripped/src/intf.c
+@@ -163,7 +163,7 @@ intf_open(void)
+ #if defined(SIOCGLIFCONF) || defined(SIOCGIFNETMASK_IN6) || defined(SIOCGIFNETMASK6)
+ if ((intf->fd6 = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
+ # ifdef EPROTONOSUPPORT
+- if (errno != EPROTONOSUPPORT)
++ if (errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT)
+ # endif
+ return (intf_close(intf));
+ }