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


ssl/t1_lib.c:4099:1: start of procedure ssl_security_cert_chain()
4097.    */
4098.   
4099. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4100.   {
4101.       int rv, start_idx, i;

ssl/t1_lib.c:4102:9: Taking false branch
4100.   {
4101.       int rv, start_idx, i;
4102.       if (x == NULL) {
                ^
4103.           x = sk_X509_value(sk, 0);
4104.           start_idx = 1;

ssl/t1_lib.c:4106:9: 
4104.           start_idx = 1;
4105.       } else
4106. >         start_idx = 0;
4107.   
4108.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4108:5: 
4106.           start_idx = 0;
4107.   
4108. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4109.       if (rv != 1)
4110.           return rv;
