From e74bdd5998b4f5e21fc63f067f1140a31834d589 Mon Sep 17 00:00:00 2001 From: huitema <huitema@huitema.net> Date: Tue, 27 Nov 2018 12:16:38 -0800 Subject: [PATCH] only-check-token-on-first-initial --- picoquic/packet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/picoquic/packet.c b/picoquic/packet.c index 2784dfc7..98c5b215 100644 --- a/picoquic/packet.c +++ b/picoquic/packet.c @@ -833,7 +833,8 @@ int picoquic_incoming_initial( /* Logic to test the retry token. * TODO: this should probably be implemented as a callback */ - if ((*pcnx)->quic->flags&picoquic_context_check_token && + if (((*pcnx)->quic->flags&picoquic_context_check_token) && + (*pcnx)->cnx_state == picoquic_state_server_init && ((*pcnx)->quic->flags&picoquic_context_server_busy) == 0) { uint8_t * base; size_t len; -- GitLab