diff options
author | Thomas Egerer <thomas.egerer@secunet.com> | 2020-04-20 15:58:07 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-04-21 06:22:16 (GMT) |
commit | 2abeec851e4c748effac341f8db0b42389b37790 (patch) | |
tree | 24d793f34a3d55ff0cda8a2ccff5859a5bda9913 /lib/xfrm | |
parent | 56114876b236430afa6f86fff90ede15e0c52914 (diff) | |
download | libnl-2abeec851e4c748effac341f8db0b42389b37790.zip libnl-2abeec851e4c748effac341f8db0b42389b37790.tar.gz libnl-2abeec851e4c748effac341f8db0b42389b37790.tar.bz2 |
xfrm: remove superfluous xfrm_userpolicy_id from dump request
Analogous to the dump request for states this data structure is
unnecessary for policy dumps, too. Unlike with states it does however
not create an error message.
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
https://github.com/thom311/libnl/pull/249
Diffstat (limited to 'lib/xfrm')
-rw-r--r-- | lib/xfrm/sp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/xfrm/sp.c b/lib/xfrm/sp.c index 99b6a4c..b7821e2 100644 --- a/lib/xfrm/sp.c +++ b/lib/xfrm/sp.c @@ -508,11 +508,7 @@ static struct nla_policy xfrm_sp_policy[XFRMA_MAX+1] = { static int xfrm_sp_request_update(struct nl_cache *c, struct nl_sock *h) { - struct xfrm_userpolicy_id sp_id; - - memset (&sp_id, 0, sizeof (sp_id)); - return nl_send_simple (h, XFRM_MSG_GETPOLICY, NLM_F_DUMP, - &sp_id, sizeof (sp_id)); + return nl_send_simple (h, XFRM_MSG_GETPOLICY, NLM_F_DUMP, NULL, 0); } int xfrmnl_sp_parse(struct nlmsghdr *n, struct xfrmnl_sp **result) |