]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: fix unterminated ACL array in compression
authorWilly Tarreau <w@1wt.eu>
Tue, 23 Apr 2013 17:39:43 +0000 (19:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Apr 2013 17:39:43 +0000 (19:39 +0200)
Recent commit 727db8b4 was lacking a NULL ACL descriptor to terminate
the array, causing a random behaviour upon startup. No backport is needed.

src/compression.c

index e75f21e38ce7a320e30161a4279705d8f3e4844e..906e4fdd751dce50d05fbb4a073e1233f1b87d9e 100644 (file)
@@ -637,6 +637,7 @@ smp_fetch_res_comp_algo(struct proxy *px, struct session *l4, void *l7, unsigned
 /* Note: must not be declared <const> as its list will be overwritten */
 static struct acl_kw_list acl_kws = {{ },{
        { "res.comp",          NULL,            acl_parse_nothing,     acl_match_nothing  },
+       { /* END */ },
 }};
 
 /* Note: must not be declared <const> as its list will be overwritten */