ports/144110: [PATCH] www/lighttpd: support IPv6 addresses in mod_extforward

Lapo Luchini lapo at lapo.it
Fri Feb 19 14:50:02 UTC 2010


>Number:         144110
>Category:       ports
>Synopsis:       [PATCH] www/lighttpd: support IPv6 addresses in mod_extforward
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 19 14:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Lapo Luchini
>Release:        FreeBSD 7.2-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD lapo.andxor.it 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct  2 08:22:32 UTC
>Description:

Fix support for IPv6 addresses in mod_extforward.
Posted upstream as http://redmine.lighttpd.net/issues/1889

Added file(s):
- files/patch-src_mod_extforward.c

Port maintainer (mnag at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- lighttpd-1.4.26.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/lighttpd/files/patch-src_mod_extforward.c /usr/home/lapo/ports/lighttpd/files/patch-src_mod_extforward.c
--- /usr/ports/www/lighttpd/files/patch-src_mod_extforward.c	1970-01-01 01:00:00.000000000 +0100
+++ /usr/home/lapo/ports/lighttpd/files/patch-src_mod_extforward.c	2010-02-19 13:13:24.000000000 +0100
@@ -0,0 +1,19 @@
+--- src/mod_extforward.c.orig	2010-02-19 11:34:37.000000000 +0100
++++ src/mod_extforward.c	2010-02-19 11:40:02.000000000 +0100
+@@ -240,14 +240,14 @@ static array *extract_forward_array(buff
+ 		int in_str = 0;
+ 		for (base = pbuffer->ptr, curr = pbuffer->ptr; *curr; curr++) {
+ 			if (in_str) {
+-				if ((*curr > '9' || *curr < '0') && *curr != '.' && *curr != ':') {
++				if ((*curr < '0' || *curr > '9') && *curr != '.' && *curr != ':' && (*curr < 'a' || *curr > 'f') && (*curr < 'A' || *curr > 'F')) {
+ 					/* found an separator , insert value into result array */
+ 					put_string_into_array_len(result, base, curr - base);
+ 					/* change state to not in string */
+ 					in_str = 0;
+ 				}
+ 			} else {
+-				if (*curr >= '0' && *curr <= '9') {
++				if ((*curr >= '0' && *curr <= '9') || (*curr >= 'a' && *curr <= 'f') || (*curr >= 'A' && *curr <= 'F')) {
+ 					/* found leading char of an IP address, move base pointer and change state */
+ 					base = curr;
+ 					in_str = 1;
--- lighttpd-1.4.26.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list