BUG/MINOR: check: test if server is not null in purge
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 9 Aug 2021 13:09:17 +0000 (15:09 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 9 Aug 2021 15:48:34 +0000 (17:48 +0200)
commit9ba34ae710d28648242c07937c7ed875b3928263
treec6debcc43bb8bb5c3cc27c4730bf3f6f58fdb38f
parent811ce5598e7f2f4cfb3c0069a66fb4c6f9389f07
BUG/MINOR: check: test if server is not null in purge

Test if server is not null before using free_server in the check purge
operation. Currently, the null server scenario should not occured as
purge is used with refcounted dynamic servers. However, this might not
be always the case if purge is use in the future in other cases; thus
the test is useful for extensibility.

No need to backport, unless dynamic server checks are backported.

This has been reported through a coverity report in github issue #1343.
src/check.c