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


ssl/t1_lib.c:4308:1: start of procedure ssl_security_cert_chain()
4306.    */
4307.   
4308. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4309.   {
4310.       int rv, start_idx, i;

ssl/t1_lib.c:4311:9: Taking false branch
4309.   {
4310.       int rv, start_idx, i;
4311.       if (x == NULL) {
                ^
4312.           x = sk_X509_value(sk, 0);
4313.           start_idx = 1;

ssl/t1_lib.c:4315:9: 
4313.           start_idx = 1;
4314.       } else
4315. >         start_idx = 0;
4316.   
4317.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4317:5: 
4315.           start_idx = 0;
4316.   
4317. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4318.       if (rv != 1)
4319.           return rv;
