|
@@ -13,7 +13,7 @@ struct tcp_fastopen_context __rcu *tcp_fastopen_ctx;
|
|
|
|
|
|
static DEFINE_SPINLOCK(tcp_fastopen_ctx_lock);
|
|
|
|
|
|
-void tcp_fastopen_init_key_once(bool publish)
|
|
|
+void tcp_fastopen_init_key_once(void)
|
|
|
{
|
|
|
static u8 key[TCP_FASTOPEN_KEY_LENGTH];
|
|
|
|
|
@@ -23,7 +23,7 @@ void tcp_fastopen_init_key_once(bool publish)
|
|
|
* All call sites of tcp_fastopen_cookie_gen also check
|
|
|
* for a valid cookie, so this is an acceptable risk.
|
|
|
*/
|
|
|
- if (net_get_random_once(key, sizeof(key)) && publish)
|
|
|
+ if (net_get_random_once(key, sizeof(key)))
|
|
|
tcp_fastopen_reset_cipher(key, sizeof(key));
|
|
|
}
|
|
|
|