projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0c1fd7
)
[AF_KEY]: Fix bug in spdadd
author
Kazunori MIYAZAWA
<kazunori@miyazawa.org>
Thu, 14 Feb 2008 22:51:38 +0000
(14:51 -0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 14 Feb 2008 22:51:38 +0000
(14:51 -0800)
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>
net/key/af_key.c
patch
|
blob
|
blame
|
history
diff --git
a/net/key/af_key.c
b/net/key/af_key.c
index b3ac85e808acf288dc91a1c12d7a9c92323cdf1d..1c853927810add38d862838c702de91bb687e4f0 100644
(file)
--- 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;
}