]> git.kaiwu.me - nginx.git/commit
Core: sockaddr lengths now respected by ngx_cmp_sockaddr().
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 10 Oct 2016 13:15:41 +0000 (16:15 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 10 Oct 2016 13:15:41 +0000 (16:15 +0300)
commit4891ba59d809133470636671f6714733b9484899
tree10607a36e89e00c13d0514e9c34d5d48c8bfecbc
parente19481f35e45dc6a0016dc11b63095d88137b719
Core: sockaddr lengths now respected by ngx_cmp_sockaddr().

Linux can return AF_UNIX sockaddrs with partially filled sun_path,
resulting in spurious comparison failures and failed binary upgrades.
Added proper checking of the lengths provided.

Reported by Jan Seda,
http://mailman.nginx.org/pipermail/nginx-devel/2016-September/008832.html.
src/core/ngx_inet.c