commit | 1edb144b8deb9ada9d7487a158f07acac8df1e2d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Jan 27 20:13:38 2010 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jan 27 20:13:38 2010 +0100 |
tree | fcdb7495add145cd21d2069fa659db3eed0850e0 | |
parent | ac778f5ade43bc3798a286ee6cf7f7cd1d323888 [diff] |
[BUG] restore accidentely removed line in last patch ! The test condition for the acl expression validity got dropped, and only the error remained. Error reported by Krzysztof Oledzki.
diff --git a/src/acl.c b/src/acl.c index 0634d5d..c4942b2 100644 --- a/src/acl.c +++ b/src/acl.c
@@ -669,6 +669,7 @@ if (!end) goto out_free_expr; arg2 = my_strndup(arg, end - arg); + if (!arg2) goto out_free_expr; expr->arg_len = end - arg; expr->arg.str = arg2;