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


ssl/t1_lib.c:4052:1: start of procedure ssl_security_cert_chain()
4050.    */
4051.   
4052. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4053.   {
4054.       int rv, start_idx, i;

ssl/t1_lib.c:4055:9: Taking false branch
4053.   {
4054.       int rv, start_idx, i;
4055.       if (x == NULL) {
                ^
4056.           x = sk_X509_value(sk, 0);
4057.           start_idx = 1;

ssl/t1_lib.c:4059:9: 
4057.           start_idx = 1;
4058.       } else
4059. >         start_idx = 0;
4060.   
4061.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4061:5: 
4059.           start_idx = 0;
4060.   
4061. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4062.       if (rv != 1)
4063.           return rv;
