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


ssl/t1_lib.c:4180:1: start of procedure ssl_security_cert_chain()
4178.    */
4179.   
4180. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4181.   {
4182.       int rv, start_idx, i;

ssl/t1_lib.c:4183:9: Taking false branch
4181.   {
4182.       int rv, start_idx, i;
4183.       if (x == NULL) {
                ^
4184.           x = sk_X509_value(sk, 0);
4185.           start_idx = 1;

ssl/t1_lib.c:4187:9: 
4185.           start_idx = 1;
4186.       } else
4187. >         start_idx = 0;
4188.   
4189.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4189:5: 
4187.           start_idx = 0;
4188.   
4189. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4190.       if (rv != 1)
4191.           return rv;
