From: Willy Tarreau Date: Mon, 30 May 2011 16:47:41 +0000 (+0200) Subject: [MINOR] config: make it possible to specify a cookie even without a server X-Git-Tag: v1.5-dev8~225 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44702af019576cc68979056982ac06cf36ff88ed;p=thirdparty%2Fhaproxy.git [MINOR] config: make it possible to specify a cookie even without a server Since version 1.0.0, it's forbidden to have a cookie specified without at least one server. This test is useless and makes it complex to write APIs to iteratively generate working configurations. Remove the test. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index dedd5c783b..9063854bb7 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -5584,11 +5584,6 @@ int check_config_validity() case PR_MODE_HTTP: curproxy->acl_requires |= ACL_USE_L7_ANY; - if ((curproxy->cookie_name != NULL) && (curproxy->srv == NULL)) { - Alert("config : HTTP proxy %s has a cookie but no server list !\n", - curproxy->id); - cfgerr++; - } break; }