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


ssl/ssl_rsa.c:355:1: start of procedure SSL_CTX_use_certificate()
353.   }
354.   
355. > int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x)
356.   {
357.       int rv;

ssl/ssl_rsa.c:358:9: Taking false branch
356.   {
357.       int rv;
358.       if (x == NULL) {
               ^
359.           SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE, ERR_R_PASSED_NULL_PARAMETER);
360.           return (0);

ssl/ssl_rsa.c:362:5: 
360.           return (0);
361.       }
362. >     rv = ssl_security_cert(NULL, ctx, x, 0, 1);
363.       if (rv != 1) {
364.           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}']