[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>
This commit is contained in:
@@ -72,7 +72,7 @@ int dccp_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_DCCP,
|
||||
inet->sport, usin->sin_port, sk);
|
||||
inet->sport, usin->sin_port, sk, 1);
|
||||
if (tmp < 0)
|
||||
return tmp;
|
||||
|
||||
|
Reference in New Issue
Block a user