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


ssl/t1_lib.c:4054:1: start of procedure ssl_security_cert_chain()
4052.    */
4053.   
4054. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4055.   {
4056.       int rv, start_idx, i;

ssl/t1_lib.c:4057:9: Taking false branch
4055.   {
4056.       int rv, start_idx, i;
4057.       if (x == NULL) {
                ^
4058.           x = sk_X509_value(sk, 0);
4059.           start_idx = 1;

ssl/t1_lib.c:4061:9: 
4059.           start_idx = 1;
4060.       } else
4061. >         start_idx = 0;
4062.   
4063.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4063:5: 
4061.           start_idx = 0;
4062.   
4063. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4064.       if (rv != 1)
4065.           return rv;
