Re: [PATCH v2] *_dom matching header functions now also split on ":"

From: Finn Arne Gangstad <finnag#pvv.org>
Date: Thu, 8 Sep 2011 19:13:44 +0200


Heh. Too many different versions of this now, so faulty version was sent. Stripping delimiters at the end of the pattern was broken.

The following needs to be applied on top:

diff --git a/src/acl.c b/src/acl.c

index cb49b43..1e8468e 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -591,7 +591,7 @@ static int match_word(struct acl_test *test, struct acl_pattern *pattern, delimi
 		ps++;
 	}
 
-	while (pl > 0 && IS_DELIMITER(*ps))
+	while (pl > 0 && IS_DELIMITER(ps[pl - 1]))
 		pl--;
 
 	if (pl > test->len)

Received on 2011/09/08 19:13

This archive was generated by hypermail 2.2.0 : 2011/09/08 19:30 CEST