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


ssl/t1_lib.c:4175:1: start of procedure ssl_security_cert_chain()
4173.    */
4174.   
4175. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4176.   {
4177.       int rv, start_idx, i;

ssl/t1_lib.c:4178:9: Taking false branch
4176.   {
4177.       int rv, start_idx, i;
4178.       if (x == NULL) {
                ^
4179.           x = sk_X509_value(sk, 0);
4180.           start_idx = 1;

ssl/t1_lib.c:4182:9: 
4180.           start_idx = 1;
4181.       } else
4182. >         start_idx = 0;
4183.   
4184.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4184:5: 
4182.           start_idx = 0;
4183.   
4184. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4185.       if (rv != 1)
4186.           return rv;
