mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[AF_KEY]: Fix bug in spdadd
This patch fix a BUG when adding spds which have same selector. Signed-off-by: Kazunori MIYAZAWA <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d0c1fd7a8f
commit
a4d6b8af1e
1 changed files with 1 additions and 0 deletions
|
|
@ -2291,6 +2291,7 @@ static int pfkey_spdadd(struct sock *sk, struct sk_buff *skb, struct sadb_msg *h
|
|||
return 0;
|
||||
|
||||
out:
|
||||
xp->dead = 1;
|
||||
xfrm_policy_destroy(xp);
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue