]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stick-tables: Missing stick-table key nullity check
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 4 Apr 2024 09:08:56 +0000 (11:08 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 4 Apr 2024 09:08:56 +0000 (11:08 +0200)
commitfcb096f7cd02e9c3cf4635ed002ad9bb0caad82e
tree40972cda9e5d4e58242376a4f3206667caa4e34d
parentba1a0559e4561e17c8ff1a4f2fd4b389f6f497d7
BUG/MINOR: stick-tables: Missing stick-table key nullity check

This bug arrived with this commit:
     MAJOR: stktable: split the keys across multiple shards to reduce contention

At this time, there are no callers which call stktable_get_entry() without checking
the nullity of <key> passed as parameter. But the documentation of this function
says it supports this case where the <key> passed as parameter could be null.

Move the nullity test on <key> at first statement of this function.

Thanks to @chipitsine for having reported this issue in GH #2518.
src/stick_table.c