]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] restore accidentely removed line in last patch !
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Jan 2010 19:13:38 +0000 (20:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Jan 2010 19:13:38 +0000 (20:13 +0100)
The test condition for the acl expression validity got dropped, and
only the error remained. Error reported by Krzysztof Oledzki.

src/acl.c

index 0634d5d74489bf359ebbfc058c6143cedaa712e5..c4942b209a6b4489d97607b37922cfab593829b1 100644 (file)
--- a/src/acl.c
+++ b/src/acl.c
@@ -669,6 +669,7 @@ struct acl_expr *parse_acl_expr(const char **args)
                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;