diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-03-24 23:16:49 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-03-24 23:16:49 +0000 |
commit | 7b52778eff258cc67bfcfb04cabfa9583dcad187 (patch) | |
tree | 96cd5737d1e1d8132133ab5abc2adc38ed0db6d9 /ssl/d1_both.c | |
parent | 162de2f2b513723b46b94f9e6963857205558e0f (diff) |
PR: 1731 and maybe 2197
Clear error queue in a few places in SSL code where errors are expected
so they don't stay in the queue.
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r-- | ssl/d1_both.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 7ca3405efb..0242f1e4da 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -886,6 +886,8 @@ unsigned long dtls1_output_cert_chain(SSL *s, X509 *x) } X509_verify_cert(&xs_ctx); + /* Don't leave errors in the queue */ + ERR_clear_error(); for (i=0; i < sk_X509_num(xs_ctx.chain); i++) { x = sk_X509_value(xs_ctx.chain, i); |