summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/xfrm/sp.c6
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)