netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [XFRM] policy: Replace magic number with XFRM_POLICY_OUT
@ 2007-08-25 10:53 Thomas Graf
  2007-08-25 20:47 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Graf @ 2007-08-25 10:53 UTC (permalink / raw)
  To: davem; +Cc: netdev


Signed-off-by: Thomas Graf <tgraf@suug.ch>

Index: net-2.6.24/net/xfrm/xfrm_policy.c
===================================================================
--- net-2.6.24.orig/net/xfrm/xfrm_policy.c	2007-08-24 13:11:17.000000000 +0200
+++ net-2.6.24/net/xfrm/xfrm_policy.c	2007-08-24 13:11:48.000000000 +0200
@@ -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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [XFRM] policy: Replace magic number with XFRM_POLICY_OUT
  2007-08-25 10:53 [XFRM] policy: Replace magic number with XFRM_POLICY_OUT Thomas Graf
@ 2007-08-25 20:47 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-08-25 20:47 UTC (permalink / raw)
  To: tgraf; +Cc: netdev

From: Thomas Graf <tgraf@suug.ch>
Date: Sat, 25 Aug 2007 12:53:41 +0200

> Signed-off-by: Thomas Graf <tgraf@suug.ch>

Applied, thanks Thomas.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-25 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-25 10:53 [XFRM] policy: Replace magic number with XFRM_POLICY_OUT Thomas Graf
2007-08-25 20:47 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).