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


ssl/t1_lib.c:4129:1: start of procedure ssl_security_cert_chain()
4127.    */
4128.   
4129. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4130.   {
4131.       int rv, start_idx, i;

ssl/t1_lib.c:4132:9: Taking false branch
4130.   {
4131.       int rv, start_idx, i;
4132.       if (x == NULL) {
                ^
4133.           x = sk_X509_value(sk, 0);
4134.           start_idx = 1;

ssl/t1_lib.c:4136:9: 
4134.           start_idx = 1;
4135.       } else
4136. >         start_idx = 0;
4137.   
4138.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4138:5: 
4136.           start_idx = 0;
4137.   
4138. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4139.       if (rv != 1)
4140.           return rv;
