diff options
author | David S. Miller | 2007-02-08 11:09:21 +0100 |
---|---|---|
committer | David S. Miller | 2007-02-08 21:38:45 +0100 |
commit | 8eb9086f21c73b38b5ca27558db4c91d62d0e70b (patch) | |
tree | 1fa2694f1e5eac966cc8db2fb8d5f3d684b09803 /net/ipv4/raw.c | |
parent | [TCP]: remove tcp header from tcp_v4_check (take #2) (diff) | |
download | kernel-qcow2-linux-8eb9086f21c73b38b5ca27558db4c91d62d0e70b.tar.gz kernel-qcow2-linux-8eb9086f21c73b38b5ca27558db4c91d62d0e70b.tar.xz kernel-qcow2-linux-8eb9086f21c73b38b5ca27558db4c91d62d0e70b.zip |
[IPV4/IPV6]: Always wait for IPSEC SA resolution in socket contexts.
Do this even for non-blocking sockets. This avoids the silly -EAGAIN
that applications can see now, even for non-blocking sockets in some
cases (f.e. connect()).
With help from Venkat Tekkirala.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/raw.c')
-rw-r--r-- | net/ipv4/raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index a6c63bbd9ddb..fed6a1e7af9e 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c @@ -489,7 +489,7 @@ static int raw_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, } security_sk_classify_flow(sk, &fl); - err = ip_route_output_flow(&rt, &fl, sk, !(msg->msg_flags&MSG_DONTWAIT)); + err = ip_route_output_flow(&rt, &fl, sk, 1); } if (err) goto done; |