dns/nsd: Fix build with DNSTAP option enabled
PR: 233890 Submitted by: jaap@NLnetLabs.nl (maintainer) Reported by: r00t@kaba1ah.org
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= nsd
|
||||
PORTVERSION= 4.1.26
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= dns ipv6
|
||||
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/ \
|
||||
ftp://ftp.rhnet.is/pub/nsd/
|
||||
|
||||
11
dns/nsd/files/patch-dnstap_dnstap.c
Normal file
11
dns/nsd/files/patch-dnstap_dnstap.c
Normal file
@@ -0,0 +1,11 @@
|
||||
--- dnstap/dnstap.c.orig 2018-12-09 20:25:39 UTC
|
||||
+++ dnstap/dnstap.c
|
||||
@@ -319,7 +319,7 @@ dt_msg_fill_net(struct dt_msg *dm,
|
||||
*has_port = 1;
|
||||
} else if (ss->ss_family == AF_INET) {
|
||||
#else
|
||||
- if (ss->ss_family == AF_INET) {
|
||||
+ if (ss->sin_family == AF_INET) {
|
||||
#endif /* INET6 */
|
||||
struct sockaddr_in *s = (struct sockaddr_in *) ss;
|
||||
|
||||
Reference in New Issue
Block a user