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


ssl/ssl_rsa.c:349:1: start of procedure SSL_CTX_use_certificate()
347.   }
348.   
349. > int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x)
350.   {
351.       int rv;

ssl/ssl_rsa.c:352:9: Taking false branch
350.   {
351.       int rv;
352.       if (x == NULL) {
               ^
353.           SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE, ERR_R_PASSED_NULL_PARAMETER);
354.           return (0);

ssl/ssl_rsa.c:356:5: 
354.           return (0);
355.       }
356. >     rv = ssl_security_cert(NULL, ctx, x, 0, 1);
357.       if (rv != 1) {
358.           SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE, rv);

int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x)
{
    int rv;
    if (x == NULL) {
        SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE, ERR_R_PASSED_NULL_PARAMETER);
        return (0);
    }
    rv = ssl_security_cert(NULL, ctx, x, 0, 1);
    if (rv != 1) {
        SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE, rv);
        return 0;
    }
    return (ssl_set_cert(ctx->cert, x));
}
['int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x)\n{\n    int rv;\n    if (x == NULL) {\n        SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE, ERR_R_PASSED_NULL_PARAMETER);\n        return (0);\n    }\n    rv = ssl_security_cert(NULL, ctx, x, 0, 1);\n    if (rv != 1) {\n        SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE, rv);\n        return 0;\n    }\n    return (ssl_set_cert(ctx->cert, x));\n}']