[IPV4/IPV6]: Always wait for IPSEC SA resolution in socket contexts.
[safe/jmp/linux-2.6] / net / ipv6 / raw.c
index 4ae1b19..f2e883c 100644 (file)
@@ -815,7 +815,7 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk,
        if (final_p)
                ipv6_addr_copy(&fl.fl6_dst, final_p);
 
-       if ((err = xfrm_lookup(&dst, &fl, sk, 0)) < 0)
+       if ((err = xfrm_lookup(&dst, &fl, sk, 1)) < 0)
                goto out;
 
        if (hlimit < 0) {