Skip to content

Commit 98522fa

Browse files
author
Lealem Amedie
committed
Only clear last ASN_PEM_NO_HEADER error
1 parent 34c1278 commit 98522fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pk.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7435,7 +7435,8 @@ static WOLFSSL_DH *wolfssl_dhparams_read_pem(WOLFSSL_DH **dh,
74357435
}
74367436
/* If Success on X9.42 DH format, clear error from failed DH format */
74377437
else {
7438-
wolfSSL_ERR_clear_error();
7438+
unsigned long error;
7439+
CLEAR_ASN_NO_PEM_HEADER_ERROR(error);
74397440
}
74407441
}
74417442
if (memAlloced) {

0 commit comments

Comments
 (0)