diff --git a/src/tls13.c b/src/tls13.c index db5659cd05..0c3b20affe 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -4945,7 +4945,7 @@ static int EchCheckAcceptance(WOLFSSL* ssl, byte* label, word16 labelSz, } if (ret == 0) { /* last 8 bytes should match our expand output */ - ret = XMEMCMP(acceptConfirmation, input + acceptOffset, + ret = ConstantCompare(acceptConfirmation, input + acceptOffset, ECH_ACCEPT_CONFIRMATION_SZ); /* ech accepted */ if (ret == 0) {