check return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23662 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -799,12 +799,17 @@ pcert_verify(struct verify_options *opt, int argc, char **argv)
|
||||
hx509_context_set_missing_revoke(context, 1);
|
||||
|
||||
ret = hx509_verify_init_ctx(context, &ctx);
|
||||
if (ret)
|
||||
hx509_err(context, 1, ret, "hx509_verify_init_ctx");
|
||||
ret = hx509_certs_init(context, "MEMORY:anchors", 0, NULL, &anchors);
|
||||
if (ret) hx509_err(context, 1, ret, "hx509_certs_init: MEMORY");
|
||||
if (ret)
|
||||
hx509_err(context, 1, ret, "hx509_certs_init: MEMORY");
|
||||
ret = hx509_certs_init(context, "MEMORY:chain", 0, NULL, &chain);
|
||||
if (ret) hx509_err(context, 1, ret, "hx509_certs_init: MEMORY");
|
||||
if (ret)
|
||||
hx509_err(context, 1, ret, "hx509_certs_init: MEMORY");
|
||||
ret = hx509_certs_init(context, "MEMORY:certs", 0, NULL, &certs);
|
||||
if (ret) hx509_err(context, 1, ret, "hx509_certs_init: MEMORY");
|
||||
if (ret)
|
||||
hx509_err(context, 1, ret, "hx509_certs_init: MEMORY");
|
||||
|
||||
if (opt->allow_proxy_certificate_flag)
|
||||
hx509_verify_set_proxy_certificate(ctx, 1);
|
||||
|
Reference in New Issue
Block a user