提交 a4d6b8af 编写于 作者: K Kazunori MIYAZAWA 提交者: David S. Miller

[AF_KEY]: Fix bug in spdadd

This patch fix a BUG when adding spds which have same selector.
Signed-off-by: NKazunori MIYAZAWA <kazunori@miyazawa.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d0c1fd7a
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册