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


ssl/t1_lib.c:4070:1: start of procedure ssl_security_cert_chain()
4068.    */
4069.   
4070. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4071.   {
4072.       int rv, start_idx, i;

ssl/t1_lib.c:4073:9: Taking false branch
4071.   {
4072.       int rv, start_idx, i;
4073.       if (x == NULL) {
                ^
4074.           x = sk_X509_value(sk, 0);
4075.           start_idx = 1;

ssl/t1_lib.c:4077:9: 
4075.           start_idx = 1;
4076.       } else
4077. >         start_idx = 0;
4078.   
4079.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4079:5: 
4077.           start_idx = 0;
4078.   
4079. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4080.       if (rv != 1)
4081.           return rv;
