From 33a518958c70ad957811fc1442372bc9159d6b73 Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Wed, 10 Dec 2025 14:11:07 +0100 Subject: [PATCH] internal.c: fix comment to be more precise --- src/internal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 8c0085638..a55b95a5b 100644 --- a/src/internal.c +++ b/src/internal.c @@ -2085,7 +2085,8 @@ int wolfSSL_session_export_internal(WOLFSSL* ssl, byte* buf, word32* sz, #endif } - /* check is at least the minimum size needed, TLS cipher states add more */ + /* check if sz is sufficient for the worst-case scenario computed above, + * TLS cipher states add more */ if (ret == 0 && (totalLen > *sz || buf == NULL)) { WOLFSSL_MSG("export buffer was too small or null"); *sz = totalLen;