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


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

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

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

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