From 268c054c4082024bac280b1523975ced5d367c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sun, 13 Oct 2013 11:34:55 +0000 Subject: [PATCH] [mod_extforward] fix compilation without IPv6, (not) using undefined var (fixes #2515, thx mm) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Stefan Bühler git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2911 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + src/mod_extforward.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS b/NEWS index fe8eabfa..2b93378f 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ NEWS - 1.4.34 * [mod_auth] explicitly link ssl for SHA1 (fixes #2517) + * [mod_extforward] fix compilation without IPv6, (not) using undefined var (fixes #2515, thx mm) - 1.4.33 - 2013-09-27 * mod_fastcgi: fix mix up of "mode" => "authorizer" in other fastcgi configs (fixes #2465, thx peex) diff --git a/src/mod_extforward.c b/src/mod_extforward.c index dd52f310..6289cccd 100644 --- a/src/mod_extforward.c +++ b/src/mod_extforward.c @@ -439,7 +439,6 @@ URIHANDLER_FUNC(mod_extforward_uri_handler) { #ifdef HAVE_IPV6 ipstr_to_sockaddr(srv, real_remote_addr, &sock); #else - UNUSED(addrs_left); sock.ipv4.sin_addr.s_addr = inet_addr(real_remote_addr); sock.plain.sa_family = (sock.ipv4.sin_addr.s_addr == 0xFFFFFFFF) ? AF_UNSPEC : AF_INET; #endif