Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Oct 2017 16:00:56 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453061 - in head/www/lighttpd: . files
Message-ID:  <201710281600.v9SG0uAB032698@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Sat Oct 28 16:00:56 2017
New Revision: 453061
URL: https://svnweb.freebsd.org/changeset/ports/453061

Log:
  Fix runtime problem when lighttpd is built with IPV6 option turned
  on.
  
  PR:		223288
  Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl> (maintainer)
  Obtained from:	https://redmine.lighttpd.net/issues/2832

Added:
  head/www/lighttpd/files/patch-patch-src__network.c   (contents, props changed)
Modified:
  head/www/lighttpd/Makefile

Modified: head/www/lighttpd/Makefile
==============================================================================
--- head/www/lighttpd/Makefile	Sat Oct 28 15:56:49 2017	(r453060)
+++ head/www/lighttpd/Makefile	Sat Oct 28 16:00:56 2017	(r453061)
@@ -3,6 +3,7 @@
 
 PORTNAME?=	lighttpd
 PORTVERSION=	1.4.47
+PORTREVISION=	1
 CATEGORIES?=	www
 MASTER_SITES?=	http://download.lighttpd.net/lighttpd/releases-1.4.x/
 

Added: head/www/lighttpd/files/patch-patch-src__network.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/lighttpd/files/patch-patch-src__network.c	Sat Oct 28 16:00:56 2017	(r453061)
@@ -0,0 +1,19 @@
+--- patch-src_network.c.orig	2017-10-28 15:54:22 UTC
++++ patch-src_network.c
+@@ -0,0 +1,16 @@
++--- src/network.c.orig	2017-10-28 14:00:17 UTC
+++++ src/network.c
++@@ -77,9 +77,13 @@ static void network_host_normalize_addr_
++     if (addr->plain.sa_family == AF_INET6)
++         buffer_append_string_len(host, CONST_STR_LEN("]"));
++     if (addr->plain.sa_family != AF_UNIX) {
+++#ifdef HAVE_IPV6
++         unsigned short port = (addr->plain.sa_family == AF_INET)
++           ? ntohs(addr->ipv4.sin_port)
++           : ntohs(addr->ipv6.sin6_port);
+++#elif
+++	unsigned short port = ntohs(addr->ipv6.sin6_port);
+++#endif
++         buffer_append_string_len(host, CONST_STR_LEN(":"));
++         buffer_append_int(host, (int)port);
++     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710281600.v9SG0uAB032698>