ssl/ssl_rsa.c:75: error: NULL_DEREFERENCE
  pointer `null` is dereferenced by call to `ssl_security_cert()` at line 75, column 10.
Showing all 3 steps of the trace


ssl/ssl_rsa.c:68:1: start of procedure SSL_use_certificate()
66.   static int ssl_set_cert(CERT *c, X509 *x509);
67.   static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey);
68. > int SSL_use_certificate(SSL *ssl, X509 *x)
69.   {
70.       int rv;

ssl/ssl_rsa.c:71:9: Taking false branch
69.   {
70.       int rv;
71.       if (x == NULL) {
              ^
72.           SSLerr(SSL_F_SSL_USE_CERTIFICATE, ERR_R_PASSED_NULL_PARAMETER);
73.           return (0);

ssl/ssl_rsa.c:75:5: 
73.           return (0);
74.       }
75. >     rv = ssl_security_cert(ssl, NULL, x, 0, 1);
76.       if (rv != 1) {
77.           SSLerr(SSL_F_SSL_USE_CERTIFICATE, rv);

int SSL_use_certificate(SSL *ssl, X509 *x)
{
    int rv;
    if (x == NULL) {
        SSLerr(SSL_F_SSL_USE_CERTIFICATE, ERR_R_PASSED_NULL_PARAMETER);
        return (0);
    }
    rv = ssl_security_cert(ssl, NULL, x, 0, 1);
    if (rv != 1) {
        SSLerr(SSL_F_SSL_USE_CERTIFICATE, rv);
        return 0;
    }
    return (ssl_set_cert(ssl->cert, x));
}
['int SSL_use_certificate(SSL *ssl, X509 *x)\n{\n    int rv;\n    if (x == NULL) {\n        SSLerr(SSL_F_SSL_USE_CERTIFICATE, ERR_R_PASSED_NULL_PARAMETER);\n        return (0);\n    }\n    rv = ssl_security_cert(ssl, NULL, x, 0, 1);\n    if (rv != 1) {\n        SSLerr(SSL_F_SSL_USE_CERTIFICATE, rv);\n        return 0;\n    }\n    return (ssl_set_cert(ssl->cert, x));\n}']