summaryrefslogtreecommitdiff
path: root/crypto/pkcs7/bio_ber.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/pkcs7/bio_ber.c')
-rw-r--r--crypto/pkcs7/bio_ber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pkcs7/bio_ber.c b/crypto/pkcs7/bio_ber.c
index 895a91177b..31973fcd1f 100644
--- a/crypto/pkcs7/bio_ber.c
+++ b/crypto/pkcs7/bio_ber.c
@@ -204,7 +204,7 @@ int bio_ber_get_header(BIO *bio, BIO_BER_CTX *ctx)
if ((ctx->buf_len < BER_BUF_SIZE) &&
(ERR_GET_REASON(ERR_peek_error()) == ASN1_R_TOO_LONG))
{
- ERR_get_error(); /* clear the error */
+ ERR_clear_error(); /* clear the error */
BIO_set_retry_read(b);
}
return(-1);