diff options
| author | Thomas Egerer <thomas.egerer@secunet.com> | 2020-04-20 17:58:07 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2020-04-21 08:22:16 +0200 |
| commit | 2abeec851e4c748effac341f8db0b42389b37790 (patch) | |
| tree | 24d793f34a3d55ff0cda8a2ccff5859a5bda9913 | |
| parent | 56114876b236430afa6f86fff90ede15e0c52914 (diff) | |
| download | platform_external_libnl-upstream-master.tar.gz platform_external_libnl-upstream-master.tar.bz2 platform_external_libnl-upstream-master.zip | |
xfrm: remove superfluous xfrm_userpolicy_id from dump requestupstream-master
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
| -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) |
