From 25d1731c41b3d0a0e15cbdc4cd9475a63f27b37d Mon Sep 17 00:00:00 2001 From: Kurt Jaeger Date: Thu, 19 Mar 2020 11:30:48 +0000 Subject: dns/nsd: fix startup - see also: https://github.com/NLnetLabs/nsd/issues/78 PR: 244904 Submitted by: ume Approved by: Jaap Akkerhuis (maintainer) --- dns/nsd/Makefile | 1 + dns/nsd/files/patch-server.c | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 dns/nsd/files/patch-server.c (limited to 'dns') 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)); -- cgit v1.2.3