]> git.kaiwu.me - haproxy.git/commit
MINOR: ssl: check parameter in ckch_conf_cmp()
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 21 May 2024 09:01:59 +0000 (11:01 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 21 May 2024 09:09:59 +0000 (11:09 +0200)
commitd74ba7cc24490d1ef53112b9a89e32c49a731fb0
treeb8b7a4b792456db2ac8dc7597af1aeeea4edd20d
parent140078c19dbc63206d396d9d41dcb5a7bbc71d19
MINOR: ssl: check parameter in ckch_conf_cmp()

Check prev and new parameters in ckch_conf_cmp() so we don't dereference
a NULL ptr. There is no risk since it's not used with a NULL ptr yet.

Also remove the check that are done later, and do it at the beginning of
the function.

Should fix issue #2572.
src/ssl_ckch.c