X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fd1_both.c;h=0242f1e4da00f510dae5871e2e55724e62b2aad2;hp=7ca3405efbb0fa393cb6357326eb9e31ee7d5607;hb=a3a06e6543bf05511cc2f508ad555a281c801326;hpb=26c00de46de72b3ea96edfb2396968ecbe3ee8b9 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);