summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dns/nsd/Makefile1
-rw-r--r--dns/nsd/files/patch-server.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/dns/nsd/Makefile b/dns/nsd/Makefile
index 723d075f2b27..19fa7ad10f00 100644
--- a/dns/nsd/Makefile
+++ b/dns/nsd/Makefile
@@ -3,6 +3,7 @@
PORTNAME= nsd
PORTVERSION= 4.3.0
+PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/ \
ftp://ftp.rhnet.is/pub/nsd/
diff --git a/dns/nsd/files/patch-server.c b/dns/nsd/files/patch-server.c
new file mode 100644
index 000000000000..b33dbd53131b
--- /dev/null
+++ b/dns/nsd/files/patch-server.c
@@ -0,0 +1,11 @@
+--- server.c.orig 2020-03-17 10:00:17 UTC
++++ server.c
+@@ -1104,7 +1104,7 @@ set_setfib(struct nsd_socket *sock)
+ {
+ #if defined(SO_SETFIB)
+ if(setsockopt(sock->s, SOL_SOCKET, SO_SETFIB,
+- (const void *)(uintptr_t)sock->fib, sizeof(sock->fib)) == -1)
++ (const void *)(uintptr_t)&sock->fib, sizeof(sock->fib)) == -1)
+ {
+ log_msg(LOG_ERR, "setsockopt(..., %s, %d, ...) failed: %s",
+ "SO_SETFIB", sock->fib, strerror(errno));