Skip to content
Snippets Groups Projects
Commit a4d6b8af authored by Kazunori MIYAZAWA's avatar Kazunori MIYAZAWA Committed by David S. Miller
Browse files

[AF_KEY]: Fix bug in spdadd


This patch fix a BUG when adding spds which have same selector.

Signed-off-by: default avatarKazunori MIYAZAWA <kazunori@miyazawa.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d0c1fd7a
Branches
Tags
No related merge requests found
...@@ -2291,6 +2291,7 @@ static int pfkey_spdadd(struct sock *sk, struct sk_buff *skb, struct sadb_msg *h ...@@ -2291,6 +2291,7 @@ static int pfkey_spdadd(struct sock *sk, struct sk_buff *skb, struct sadb_msg *h
return 0; return 0;
out: out:
xp->dead = 1;
xfrm_policy_destroy(xp); xfrm_policy_destroy(xp);
return err; return err;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment