MINOR: stick_table: centralize the handling of empty keys
authorWilly Tarreau <w@1wt.eu>
Thu, 26 Apr 2012 09:03:17 +0000 (11:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:57:18 +0000 (20:57 +0200)
commit7fc1c6eefb7f3b64dee8f3a4a31e3b7f5a65dc2e
treefe93f0d7aed9aed3bd137275828a98a7c15a85c4
parent82ea800b0fb2e7dd3d498c4973aa7eef364f208c
MINOR: stick_table: centralize the handling of empty keys

Right now, it's up to each pattern fetch method to return NULL when an
empty string is returned, which is neither correct nor desirable as it
is only stick tables which need to ignore empty patterns. Let's perform
this check in stktable_fetch_key() instead.
src/stick_table.c