]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: 51d: fix possible segfault on deinit_51degrees()
authorDragan Dosen <ddosen@haproxy.com>
Thu, 7 Mar 2019 14:24:23 +0000 (15:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 Mar 2019 16:16:27 +0000 (17:16 +0100)
commitbc6218e1b02860c6cdad0d2bb4dc8874557087f8
tree0f142749ee9dea515a7d7acd95c14b129ca2fbad
parent2365fb0c9748b70ceada1094f59180e9e72b6b6b
BUG/MEDIUM: 51d: fix possible segfault on deinit_51degrees()

When haproxy is built with 51Degrees support, but not configured to use
51Degrees database, a segfault can occur when deinit_51degrees()
function is called, eg. during soft-stop on SIGUSR1 signal.

Only builds that use Pattern algorithm are affected.

This fix must be backported to all stable branches where 51Degrees
support is available. Additional adjustments are required for some
branches due to API and naming changes.
src/51d.c