]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stick-table: Always call smp_fetch_src() with a valid arg list
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 Jan 2021 09:27:47 +0000 (10:27 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 Jan 2021 12:24:16 +0000 (13:24 +0100)
commitbdbd5db2a50461fceb7fb89329e73d08f90e44fd
tree27ff2ab6d6e85f086b338bf398a9408a2f42278f
parent1faeb4c71084a20c68ee8d7bc42e337d4d435366
BUG/MINOR: stick-table: Always call smp_fetch_src() with a valid arg list

The sample fetch functions must always be called with a valid argument
list. When called by hand, if there is no argument to pass, empty_arg_list must
be used.

In the stick-table code, there are some calls to smp_fetch_src() with NULL as
argument list. It is changed to use empty_arg_list instead. It is not really a
bug because smp_fetch_src() does not use the argument list. But it is an API
bug.

This patch may be backported to all stable branches as a cleanup.
src/stick_table.c