diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 276406a83a37..b7661a68d498 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -3436,6 +3436,10 @@ int tcp_connect(struct sock *sk) | |||
3436 | int err; | 3436 | int err; |
3437 | 3437 | ||
3438 | tcp_call_bpf(sk, BPF_SOCK_OPS_TCP_CONNECT_CB); | 3438 | tcp_call_bpf(sk, BPF_SOCK_OPS_TCP_CONNECT_CB); |
3439 | |||
3440 | if (inet_csk(sk)->icsk_af_ops->rebuild_header(sk)) | ||
3441 | return -EHOSTUNREACH; /* Routing failure or similar. */ | ||
3442 | |||
3439 | tcp_connect_init(sk); | 3443 | tcp_connect_init(sk); |
3440 | 3444 | ||
3441 | if (unlikely(tp->repair)) { | 3445 | if (unlikely(tp->repair)) { |