diff options
author | Phil Sutter <phil@nwl.cc> | 2022-03-25 18:33:55 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-03-29 23:33:28 +0200 |
commit | 3cffa84fa74f40c57e9ef39ea5747d792d697367 (patch) | |
tree | 9a0e1d96bad4e967d87d4cf35368438c3dbfd06b /COPYING | |
parent | 90ba6791824ef761f9f397c05b20a2f102dbe74a (diff) |
libnfnetlink: Check getsockname() return code
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.
Fixes: 4248314d40187 ("nfnl: fix compilation warning with gcc-4.7")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions