cURL / Mailing Lists / curl-library / Single Mail

curl-library

ssluse.c uses wrong error text

From: David McCreedy <mccreedytpf_at_msn.com>
Date: Mon, 13 Mar 2006 23:08:23 +0000

I've found that lib/ssluse uses the wrong variable (err instead of lerr) on
one of its calls to X509_verify_cert_error_string, causing the wrong error
text to be used:

    }
      else
        infof(data, "SSL certificate verify result: %s (%ld),"
              " continuing anyway.\n",
              X509_verify_cert_error_string(err), lerr);
    }

I think the call needs to be changed:

        ...
              X509_verify_cert_error_string(lerr), lerr);
        ...

-David McCreedy
Received on 2006-03-14