Skip to content

Commit 569a5e0

Browse files
authored
Merge pull request #9509 from rizlik/comment_fix
internal.c: fix comment to be more precise
2 parents b69ce5a + 33a5189 commit 569a5e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/internal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,8 @@ int wolfSSL_session_export_internal(WOLFSSL* ssl, byte* buf, word32* sz,
20852085
#endif
20862086
}
20872087

2088-
/* check is at least the minimum size needed, TLS cipher states add more */
2088+
/* check if sz is sufficient for the worst-case scenario computed above,
2089+
* TLS cipher states add more */
20892090
if (ret == 0 && (totalLen > *sz || buf == NULL)) {
20902091
WOLFSSL_MSG("export buffer was too small or null");
20912092
*sz = totalLen;

0 commit comments

Comments
 (0)