diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2020-03-19 11:30:48 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2020-03-19 11:30:48 +0000 |
commit | 25d1731c41b3d0a0e15cbdc4cd9475a63f27b37d (patch) | |
tree | 9872ad1fc90a185c0c1c9c6d3d74cdd1bbbda64c | |
parent | f74ca7ec079aa80622204942a8691b8f6614d81c (diff) | |
download | freebsd-ports-25d1731c41b3d0a0e15cbdc4cd9475a63f27b37d.zip |
dns/nsd: fix startup
- see also: https://github.com/NLnetLabs/nsd/issues/78
PR: 244904
Submitted by: ume
Approved by: Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
-rw-r--r-- | dns/nsd/Makefile | 1 | ||||
-rw-r--r-- | dns/nsd/files/patch-server.c | 11 |
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)); |