crypto/x509/x509_vfy.c:686: error: UNINITIALIZED_VALUE
  The value read from ok was never initialized.
Showing all 1 steps of the trace


crypto/x509/x509_vfy.c:686:2: 
684.   	X509_CRL_free(crl);
685.   	ctx->current_crl = NULL;
686. > 	return ok;
687.   
688.   	}

static int check_cert(X509_STORE_CTX *ctx)
	{
	X509_CRL *crl = NULL;
	X509 *x;
	int ok, cnum;
	cnum = ctx->error_depth;
	x = sk_X509_value(ctx->chain, cnum);
	ctx->current_cert = x;
	ctx->current_issuer = NULL;
	ctx->current_reasons = 0;
	while (ctx->current_reasons != CRLDP_ALL_REASONS)
		{
		ok = ctx->get_crl(ctx, &crl, x);
		if(!ok)
			{
			ctx->error = X509_V_ERR_UNABLE_TO_GET_CRL;
			ok = ctx->verify_cb(0, ctx);
			goto err;
			}
		ctx->current_crl = crl;
		ok = ctx->check_crl(ctx, crl);
		if (!ok)
			goto err;
		ok = ctx->cert_crl(ctx, crl, x);
		if (!ok)
			goto err;
		X509_CRL_free(crl);
		crl = NULL;
		}
	err:
	X509_CRL_free(crl);
	ctx->current_crl = NULL;
	return ok;
	}
['static int check_cert(X509_STORE_CTX *ctx)\n\t{\n\tX509_CRL *crl = NULL;\n\tX509 *x;\n\tint ok, cnum;\n\tcnum = ctx->error_depth;\n\tx = sk_X509_value(ctx->chain, cnum);\n\tctx->current_cert = x;\n\tctx->current_issuer = NULL;\n\tctx->current_reasons = 0;\n\twhile (ctx->current_reasons != CRLDP_ALL_REASONS)\n\t\t{\n\t\tok = ctx->get_crl(ctx, &crl, x);\n\t\tif(!ok)\n\t\t\t{\n\t\t\tctx->error = X509_V_ERR_UNABLE_TO_GET_CRL;\n\t\t\tok = ctx->verify_cb(0, ctx);\n\t\t\tgoto err;\n\t\t\t}\n\t\tctx->current_crl = crl;\n\t\tok = ctx->check_crl(ctx, crl);\n\t\tif (!ok)\n\t\t\tgoto err;\n\t\tok = ctx->cert_crl(ctx, crl, x);\n\t\tif (!ok)\n\t\t\tgoto err;\n\t\tX509_CRL_free(crl);\n\t\tcrl = NULL;\n\t\t}\n\terr:\n\tX509_CRL_free(crl);\n\tctx->current_crl = NULL;\n\treturn ok;\n\t}']