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


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

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

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

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