Browse Source

missing REPORT_OPENSSL_ERRORS

Joe Shochet 22 years ago
parent
commit
e854158b47
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/downloader/httpClient.cxx

+ 2 - 0
panda/src/downloader/httpClient.cxx

@@ -723,7 +723,9 @@ load_verify_locations(SSL_CTX *ctx, const Filename &ca_file) {
 
 
   // We have to be sure and clear the OpenSSL error state before we
   // We have to be sure and clear the OpenSSL error state before we
   // call this function, or it will get confused.
   // call this function, or it will get confused.
+#ifdef REPORT_OPENSSL_ERRORS
   ERR_clear_error();
   ERR_clear_error();
+#endif
   inf = PEM_X509_INFO_read_bio(mbio, NULL, NULL, NULL);
   inf = PEM_X509_INFO_read_bio(mbio, NULL, NULL, NULL);
   BIO_free(mbio);
   BIO_free(mbio);