mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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:
parent
ba7808eac1
commit
8eb9086f21
12 changed files with 14 additions and 13 deletions
|
@ -265,7 +265,7 @@ static int tcp_v6_connect(struct sock *sk, struct sockaddr *uaddr,
|
|||
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 failure;
|
||||
|
||||
if (saddr == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue