diff options
author | Nils Larsch <nils@openssl.org> | 2005-04-07 22:53:35 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2005-04-07 22:53:35 +0000 |
commit | f763e0b5ae74c67795d096c9029b5c61e891e68a (patch) | |
tree | efcfbda8d8f60aa958c080a184b469e01e9e8713 /crypto/pkcs7 | |
parent | eb3eab20a86e3d06e949880e2a036a026dd1da91 (diff) |
make sure error queue is totally emptied
PR: 359
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r-- | crypto/pkcs7/bio_ber.c | 2 |
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); |