BUG/MINOR: server-state: properly handle the case where the base is not set
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 12:57:19 +0000 (13:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 12:57:19 +0000 (13:57 +0100)
commit6d4173e62291ae81ad4882a70871eefd46630b38
tree1075d45de9317f989f7e0899702b3024549bcc5b
parentcd03be73d59ad2c5d9ad43b28a1b0fda9f32526c
BUG/MINOR: server-state: properly handle the case where the base is not set

The refactoring in commit 131b07be3 ("MEDIUM: server: Refactor
apply_server_state() to make it more readable") made the global
server_state_base be dereferenced before being checked, resulting
in a crash on certain files.

This happened in 2.4-dev10, no backport is needed.
src/server_state.c