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


ssl/t1_lib.c:4112:1: start of procedure ssl_security_cert_chain()
4110.    */
4111.   
4112. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4113.   {
4114.       int rv, start_idx, i;

ssl/t1_lib.c:4115:9: Taking false branch
4113.   {
4114.       int rv, start_idx, i;
4115.       if (x == NULL) {
                ^
4116.           x = sk_X509_value(sk, 0);
4117.           start_idx = 1;

ssl/t1_lib.c:4119:9: 
4117.           start_idx = 1;
4118.       } else
4119. >         start_idx = 0;
4120.   
4121.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4121:5: 
4119.           start_idx = 0;
4120.   
4121. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4122.       if (rv != 1)
4123.           return rv;
