From fb816f768bca1b434d068f8a089503b06af4bbf9 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Tue, 10 Apr 2007 09:26:20 +0000 Subject: [PATCH] oops, missed one renamed variable if IPv6 is not available git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1738 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/mod_extforward.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_extforward.c b/src/mod_extforward.c index c7d722f0..23c367d5 100644 --- a/src/mod_extforward.c +++ b/src/mod_extforward.c @@ -421,7 +421,7 @@ URIHANDLER_FUNC(mod_extforward_uri_handler) { } #else sock.ipv4.sin_addr.s_addr = inet_addr(real_remote_addr); - sock.plain.sa_family = (s.ipv4.sin_addr.s_addr == 0xFFFFFFFF) ? AF_UNSPEC : AF_INET; + sock.plain.sa_family = (sock.ipv4.sin_addr.s_addr == 0xFFFFFFFF) ? AF_UNSPEC : AF_INET; #endif if (sock.plain.sa_family != AF_UNSPEC) { /* we found the remote address, modify current connection and save the old address */