]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] fix binary stick-tables
authorCyril Bonté <cyril.bonte@free.fr>
Mon, 9 May 2011 18:44:54 +0000 (20:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 May 2011 21:30:58 +0000 (23:30 +0200)
As reported by Lauri-Alo Adamson, version 1.5-dev6 doesn't support
stick-tables with a binary type.
This issue was introduced in the commit 4f92d32 where a line was erroneously
deleted, and is 1.5-specific.

src/stick_table.c

index 20bae5fb8ab849f383f384a5dfb953ddffac395e..8fb10cfe23c70b1d5e35c4453e7cae84b18648b7 100644 (file)
@@ -578,6 +578,7 @@ static pattern_to_key_fct pattern_to_key[PATTERN_TYPES][STKTABLE_TYPES] = {
 /*           STRING */ { k_str2ip, k_str2ipv6,  k_str2int, k_str2str,  k_str2str },
 /*             DATA */ { NULL,     NULL,        NULL,      NULL,       k_str2str },
 /*      CONSTSTRING */ { k_str2ip, k_str2ipv6,  k_str2int, k_str2str,  k_str2str },
+/*        CONSTDATA */ { NULL,     NULL,        NULL,      NULL     ,  k_str2str },
 
 };