summaryrefslogtreecommitdiffstats
path: root/ssl/d1_both.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-03-24 23:16:35 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-03-24 23:16:35 +0000
commitee91323f52f27d3fe6fad16463fa580be6bfd358 (patch)
tree23985b6fcc4cc116df605969165d0064d1c6b9e3 /ssl/d1_both.c
parent4fae868811dab819213b673fc82227d64bd6824b (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c
index 0a5c08d713..0781a4b670 100644
--- a/ssl/d1_both.c
+++ b/ssl/d1_both.c
@@ -888,6 +888,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);