summaryrefslogtreecommitdiffstats
path: root/net/key
diff options
context:
space:
mode:
authorKazunori MIYAZAWA <kazunori@miyazawa.org>2008-02-14 14:51:38 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-14 14:51:38 -0800
commita4d6b8af1e92daa872f55d06415b76c35f44d8bd (patch)
treea1c4b760b39176cffdca6f2213681236d920734a /net/key
parentd0c1fd7a8f4cadb95b093d2600ad627f432c5edb (diff)
downloadop-kernel-dev-a4d6b8af1e92daa872f55d06415b76c35f44d8bd.zip
op-kernel-dev-a4d6b8af1e92daa872f55d06415b76c35f44d8bd.tar.gz
[AF_KEY]: Fix bug in spdadd
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>
Diffstat (limited to 'net/key')
-rw-r--r--net/key/af_key.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c
index b3ac85e..1c85392 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -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;
}
OpenPOWER on IntegriCloud