Skip to content

Commit eb8ed9e

Browse files
Check i against the correct variable. MAX_CERT_EXTENSIONS doesn't always equal 1 + MAX_CHAIN_DEPTH, and the latter is the length of the array.
1 parent 7251018 commit eb8ed9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25925,7 +25925,7 @@ int SendCertificateStatus(WOLFSSL* ssl)
2592525925

2592625926
if (idx > chain->length)
2592725927
break;
25928-
if ((i + 1) >= MAX_CERT_EXTENSIONS) {
25928+
if ((i + 1) >= (1 + MAX_CHAIN_DEPTH)) {
2592925929
ret = MAX_CERT_EXTENSIONS_ERR;
2593025930
break;
2593125931
}

0 commit comments

Comments
 (0)