summaryrefslogtreecommitdiffstats
path: root/lib/utils.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-08-14 09:44:53 (GMT)
committerThomas Haller <thaller@redhat.com>2016-08-14 09:46:19 (GMT)
commitb3dfa79010dcb0f12d68903ba8fb8367d8bee0da (patch)
tree579ca339eb5c6ed1fd74f91f51887f28607023a2 /lib/utils.c
parent5e17c54a7536caca42bacef4a01cf33ce131de0d (diff)
downloadlibnl-b3dfa79010dcb0f12d68903ba8fb8367d8bee0da.zip
libnl-b3dfa79010dcb0f12d68903ba8fb8367d8bee0da.tar.gz
libnl-b3dfa79010dcb0f12d68903ba8fb8367d8bee0da.tar.bz2
nl-addr: avoid read-out-of-bound in nl_addr_fill_sockaddr()
https://github.com/thom311/libnl/issues/103 Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/utils.c')
-rw-r--r--lib/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.c b/lib/utils.c
index 3e98ab5..61c3d95 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -1165,7 +1165,7 @@ int nl_has_capability (int capability)
NL_CAPABILITY_RTNL_ADDR_PEER_FIX,
NL_CAPABILITY_VERSION_3_2_28,
NL_CAPABILITY_RTNL_ADDR_PEER_ID_FIX,
- 0,
+ NL_CAPABILITY_NL_ADDR_FILL_SOCKADDR,
0,
0,
0),