diff options
| author | David S. Miller <[email protected]> | 2007-02-08 10:09:21 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2007-02-08 20:38:45 +0000 |
| commit | 8eb9086f21c73b38b5ca27558db4c91d62d0e70b (patch) | |
| tree | 1fa2694f1e5eac966cc8db2fb8d5f3d684b09803 /net/ipv4/tcp_ipv4.c | |
| parent | [TCP]: remove tcp header from tcp_v4_check (take #2) (diff) | |
| download | kernel-8eb9086f21c73b38b5ca27558db4c91d62d0e70b.tar.gz kernel-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 <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
| -rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index f061ec50d8bc..383e4b52dbde 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -191,7 +191,7 @@ int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) tmp = ip_route_connect(&rt, nexthop, inet->saddr, RT_CONN_FLAGS(sk), sk->sk_bound_dev_if, IPPROTO_TCP, - inet->sport, usin->sin_port, sk); + inet->sport, usin->sin_port, sk, 1); if (tmp < 0) return tmp; |
