Skip to content

Commit 6fbd327

Browse files
committed
Fix PEM footer comparison length
1 parent cbedccd commit 6fbd327

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp_internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ int wp_read_pem_bio(WOLFPROV_CTX *provctx, OSSL_CORE_BIO *coreBio,
11131113
*len += readLen;
11141114
}
11151115
/* Last line should have footer. */
1116-
if (XMEMCMP(buf, "-----END ", 8) == 0) {
1116+
if (XMEMCMP(buf, "-----END ", 9) == 0) {
11171117
break;
11181118
}
11191119
}

0 commit comments

Comments
 (0)