Skip to content

Commit

Permalink
[AF_KEY]: Fix bug in spdadd
Browse files Browse the repository at this point in the history
This patch fix a BUG when adding spds which have same selector.

Signed-off-by: Kazunori MIYAZAWA <kazunori@miyazawa.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kazunori MIYAZAWA authored and David S. Miller committed Feb 14, 2008
1 parent d0c1fd7 commit a4d6b8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/key/af_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a4d6b8a

Please sign in to comment.