summaryrefslogtreecommitdiffstats
path: root/ssl/s3_both.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-03-24 23:17:15 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-03-24 23:17:15 +0000
commita3a06e6543bf05511cc2f508ad555a281c801326 (patch)
tree2827fd2baa60ce2b3c73bd7b9c947c1d4f0e193e /ssl/s3_both.c
parent26c00de46de72b3ea96edfb2396968ecbe3ee8b9 (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/s3_both.c')
-rw-r--r--ssl/s3_both.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/s3_both.c b/ssl/s3_both.c
index 16d92610e9..a6d869df59 100644
--- a/ssl/s3_both.c
+++ b/ssl/s3_both.c
@@ -352,6 +352,8 @@ unsigned long ssl3_output_cert_chain(SSL *s, X509 *x)
return(0);
}
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);