From: Willy Tarreau Date: Wed, 27 Jan 2010 19:13:38 +0000 (+0100) Subject: [BUG] restore accidentely removed line in last patch ! X-Git-Tag: v1.4-rc1~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1edb144b8deb9ada9d7487a158f07acac8df1e2d;p=thirdparty%2Fhaproxy.git [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 0634d5d744..c4942b209a 100644 --- 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;