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)
This commit is contained in:
parent
f74ca7ec07
commit
25d1731c41
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=528710
2 changed files with 12 additions and 0 deletions
|
@ -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/
|
||||
|
|
11
dns/nsd/files/patch-server.c
Normal file
11
dns/nsd/files/patch-server.c
Normal file
|
@ -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));
|
Loading…
Reference in a new issue