diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-06-18 22:44:18 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-18 22:44:18 -0700 |
commit | e7443892f656d760ec1b9d92567178c87e100f4a (patch) | |
tree | 1fafb0ca8fd4b81af36a2460b4acad3f68bef8ab /net/xfrm | |
parent | bf08867f91a43aa3ba2e4598c06c4769a6cdddf6 (diff) | |
download | linux-3.10-e7443892f656d760ec1b9d92567178c87e100f4a.tar.gz linux-3.10-e7443892f656d760ec1b9d92567178c87e100f4a.tar.bz2 linux-3.10-e7443892f656d760ec1b9d92567178c87e100f4a.zip |
[IPSEC] Set byid for km_event in xfrm_get_policy
This patch fixes policy deletion in xfrm_user so that it sets
km_event.data.byid. This puts xfrm_user on par with what af_key
does in this case.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 4d3237d08ff..ff6fc610730 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -883,6 +883,7 @@ static int xfrm_get_policy(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfr MSG_DONTWAIT); } } else { + c.data.byid = p->index; c.event = XFRM_SAP_DELETED; c.seq = nlh->nlmsg_seq; c.pid = nlh->nlmsg_pid; |