]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv4/tcp_fastopen.c
Merge tag 'socfpga_update_for_v5.5' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / net / ipv4 / tcp_fastopen.c
index a915ade0c81803a3b190e8c0513220b4e67c35e4..19ad9586c7201135777c190e6851587acce14033 100644 (file)
@@ -422,7 +422,10 @@ bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss,
                cookie->len = -1;
                return true;
        }
-       return cookie->len > 0;
+       if (cookie->len > 0)
+               return true;
+       tcp_sk(sk)->fastopen_client_fail = TFO_COOKIE_UNAVAILABLE;
+       return false;
 }
 
 /* This function checks if we want to defer sending SYN until the first