projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b26a9a
)
[XFRM] policy: Replace magic number with XFRM_POLICY_OUT
author
Thomas Graf
<tgraf@suug.ch>
Sat, 25 Aug 2007 20:46:55 +0000
(13:46 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:34 +0000
(16:48 -0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c
patch
|
blob
|
blame
|
history
diff --git
a/net/xfrm/xfrm_policy.c
b/net/xfrm/xfrm_policy.c
index 7012891d39f2c6757b1c50784299043d353cc07a..6ab81b1d215ebb23f932624fc7845b6483ab36c2 100644
(file)
--- a/
net/xfrm/xfrm_policy.c
+++ b/
net/xfrm/xfrm_policy.c
@@
-1477,7
+1477,7
@@
restart:
pol_dead = 0;
xfrm_nr = 0;
- if (sk && sk->sk_policy[
1
]) {
+ if (sk && sk->sk_policy[
XFRM_POLICY_OUT
]) {
policy = xfrm_sk_policy_lookup(sk, XFRM_POLICY_OUT, fl);
if (IS_ERR(policy))
return PTR_ERR(policy);