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


ssl/t1_lib.c:4149:1: start of procedure ssl_security_cert_chain()
4147.    */
4148.   
4149. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4150.   {
4151.       int rv, start_idx, i;

ssl/t1_lib.c:4152:9: Taking false branch
4150.   {
4151.       int rv, start_idx, i;
4152.       if (x == NULL) {
                ^
4153.           x = sk_X509_value(sk, 0);
4154.           start_idx = 1;

ssl/t1_lib.c:4156:9: 
4154.           start_idx = 1;
4155.       } else
4156. >         start_idx = 0;
4157.   
4158.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4158:5: 
4156.           start_idx = 0;
4157.   
4158. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4159.       if (rv != 1)
4160.           return rv;
