Re: [libnfnetlink PATCH 2/2] libnfnetlink: Check getsockname() return code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 25, 2022 at 06:34:26PM +0100, Phil Sutter wrote:
> The function may return -1 (and set errno). Assume it will leave
> addr_len value unchanged, so checking is necessary to not hide the
> error.

LGTM.

> Fixes: 4248314d40187 ("nfnl: fix compilation warning with gcc-4.7")
> Signed-off-by: Phil Sutter <phil@xxxxxx>



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux