BUG/MINOR: stick-table/cli: Check for invalid ipv6 key
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Nov 2021 08:17:25 +0000 (09:17 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 23 Nov 2021 15:34:07 +0000 (16:34 +0100)
commit7e137bebb31edac617bff3109b2bdd3e421c2cab
treebbee44edfe99fa00459edf2cd61b20e657a004ab
parentb45f0925db61e242efa9ce0ed2567114c97ae65a
BUG/MINOR: stick-table/cli: Check for invalid ipv6 key

When an ipv6 key is used to filter a CLI command on a stick table
(clear/set/show table ...), the return value of inet_pton() call must be
checked to be sure the key is valid.

This patch should fix the issue #1163. It should be backported to all
supported versions.

(cherry picked from commit b7c962b0c070a0c6ad35eaed332869a36cb931cf)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 1e850b52a1cb350620a31641452089caeb1c0318)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/stick_table.c