All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][IPv6][IPsec] fix the address family for xfrm_state_lookup in xfrm_input
@ 2007-12-04  5:28 Kazunori MIYAZAWA
  2007-12-04  5:49 ` Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Kazunori MIYAZAWA @ 2007-12-04  5:28 UTC (permalink / raw)
  To: herbert; +Cc: netdev, usagi-core

Hi Herbert, 

This is the patch to fix IPv6 IPsec input.

Signed-off-by: Kazunori MIYAZAWA <kazunori@miyazawa.org>
---
 net/xfrm/xfrm_input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c
index 96f42c1..da3c963 100644
--- a/net/xfrm/xfrm_input.c
+++ b/net/xfrm/xfrm_input.c
@@ -136,7 +136,7 @@ int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type)
 		if (skb->sp->len == XFRM_MAX_DEPTH)
 			goto drop;
 
-		x = xfrm_state_lookup(daddr, spi, nexthdr, AF_INET);
+		x = xfrm_state_lookup(daddr, spi, nexthdr, skb->dst->ops->family);
 		if (x == NULL)
 			goto drop;
 
-- 
1.4.4.2


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

end of thread, other threads:[~2007-12-04  6:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-04  5:28 [PATCH][IPv6][IPsec] fix the address family for xfrm_state_lookup in xfrm_input Kazunori MIYAZAWA
2007-12-04  5:49 ` Herbert Xu
2007-12-04  6:23   ` Kazunori MIYAZAWA
2007-12-04  6:54     ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.