David McCreedy found a use of the wrong variable when display the error
authorDaniel Stenberg <daniel@haxx.se>
Mon, 13 Mar 2006 23:34:25 +0000 (23:34 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 Mar 2006 23:34:25 +0000 (23:34 +0000)
text from OpenSSL.

lib/ssluse.c

index 046003c..0ec216a 100644 (file)
@@ -1521,7 +1521,7 @@ Curl_ossl_connect(struct connectdata *conn,
       else
         infof(data, "SSL certificate verify result: %s (%ld),"
               " continuing anyway.\n",
-              X509_verify_cert_error_string(err), lerr);
+              X509_verify_cert_error_string(lerr), lerr);
     }
     else
       infof(data, "SSL certificate verify ok.\n");