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


ssl/t1_lib.c:4061:1: start of procedure ssl_security_cert_chain()
4059.    */
4060.   
4061. > int ssl_security_cert_chain(SSL *s, STACK_OF(X509) *sk, X509 *x, int vfy)
4062.   {
4063.       int rv, start_idx, i;

ssl/t1_lib.c:4064:9: Taking false branch
4062.   {
4063.       int rv, start_idx, i;
4064.       if (x == NULL) {
                ^
4065.           x = sk_X509_value(sk, 0);
4066.           start_idx = 1;

ssl/t1_lib.c:4068:9: 
4066.           start_idx = 1;
4067.       } else
4068. >         start_idx = 0;
4069.   
4070.       rv = ssl_security_cert(s, NULL, x, vfy, 1);

ssl/t1_lib.c:4070:5: 
4068.           start_idx = 0;
4069.   
4070. >     rv = ssl_security_cert(s, NULL, x, vfy, 1);
4071.       if (rv != 1)
4072.           return rv;
