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


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

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

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

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