]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPSEC]: More fix is needed for __xfrm6_bundle_create().
authorNoriaki TAKAMIYA <takamiya@po.ntts.co.jp>
Tue, 20 Feb 2007 09:08:41 +0000 (01:08 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 26 Feb 2007 19:42:43 +0000 (11:42 -0800)
Fixed to set fl_tunnel.fl6_src correctly in xfrm6_bundle_create().

Signed-off-by: Noriaki TAKAMIYA <takamiya@po.ntts.co.jp>
Acked-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/xfrm6_policy.c

index b1133f27c8aed0ce5578d0417c0c704bc1650c9b..d8a585bd2cb40654cd16b7593ecabe190eae7f7e 100644 (file)
@@ -189,7 +189,7 @@ __xfrm6_bundle_create(struct xfrm_policy *policy, struct xfrm_state **xfrm, int
                        case AF_INET6:
                                ipv6_addr_copy(&fl_tunnel.fl6_dst, __xfrm6_bundle_addr_remote(xfrm[i], &fl->fl6_dst));
 
-                               ipv6_addr_copy(&fl_tunnel.fl6_src, __xfrm6_bundle_addr_remote(xfrm[i], &fl->fl6_src));
+                               ipv6_addr_copy(&fl_tunnel.fl6_src, __xfrm6_bundle_addr_local(xfrm[i], &fl->fl6_src));
                                break;
                        default:
                                BUG_ON(1);