svn commit: r528710 - in head/dns/nsd: . files

Kurt Jaeger pi at FreeBSD.org
Thu Mar 19 11:30:51 UTC 2020


Author: pi
Date: Thu Mar 19 11:30:48 2020
New Revision: 528710
URL: https://svnweb.freebsd.org/changeset/ports/528710

Log:
  dns/nsd: fix startup
  
  - see also: https://github.com/NLnetLabs/nsd/issues/78
  
  PR:		244904
  Submitted by:	ume
  Approved by:	Jaap Akkerhuis <jaap at NLnetLabs.nl> (maintainer)

Added:
  head/dns/nsd/files/patch-server.c   (contents, props changed)
Modified:
  head/dns/nsd/Makefile

Modified: head/dns/nsd/Makefile
==============================================================================
--- head/dns/nsd/Makefile	Thu Mar 19 11:12:46 2020	(r528709)
+++ head/dns/nsd/Makefile	Thu Mar 19 11:30:48 2020	(r528710)
@@ -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/

Added: head/dns/nsd/files/patch-server.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/nsd/files/patch-server.c	Thu Mar 19 11:30:48 2020	(r528710)
@@ -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));


More information about the svn-ports-all mailing list