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


ssl/t1_lib.c:4143:1: start of procedure ssl_security_cert_chain()
4141.    */
4142.   
4143. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4144.   {
4145.       int rv, start_idx, i;

ssl/t1_lib.c:4146:9: Taking false branch
4144.   {
4145.       int rv, start_idx, i;
4146.       if (x == NULL) {
                ^
4147.           x = sk_X509_value(sk, 0);
4148.           start_idx = 1;

ssl/t1_lib.c:4150:9: 
4148.           start_idx = 1;
4149.       } else
4150. >         start_idx = 0;
4151.   
4152.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4152:5: 
4150.           start_idx = 0;
4151.   
4152. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4153.       if (rv != 1)
4154.           return rv;
