]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: tools: Fix `inet_ntop` usage in sa2str
authorTim Duesterhus <tim@bastelstu.be>
Sun, 22 May 2022 11:06:27 +0000 (13:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 23 May 2022 06:45:31 +0000 (08:45 +0200)
commit162f0875adbe1418ef3cabf68bf1c70ba94e4f56
treec88cc24a53fd5b4b26bb24b1d135ba73fb12f78e
parent147eeb2ef3da803537cd09274244ff3349c7f009
BUG/MEDIUM: tools: Fix `inet_ntop` usage in sa2str

The given size must be the size of the destination buffer, not the size of the
(binary) address representation.

This fixes GitHub issue #1599.

The bug was introduced in 92149f9a82a9b55c598f1cc815bc330c555f3561 which is in
2.4+. The fix must be backported there.
src/tools.c