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


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

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

ssl/ssl_rsa.c:76:5: 
74.           return (0);
75.       }
76. >     rv = ssl_security_cert(ssl, NULL, x, 0, 1);
77.       if (rv != 1) {
78.           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}']