hxtool: Check hx509_request_init() return

This commit is contained in:
Nicolas Williams
2023-01-04 16:17:57 -06:00
parent fefc380568
commit 485b5d575a

View File

@@ -1493,7 +1493,9 @@ request_create(struct request_create_options *opt, int argc, char **argv)
opt->key_bits_integer, opt->key_bits_integer,
&signer); &signer);
hx509_request_init(context, &req); ret = hx509_request_init(context, &req);
if (ret)
hx509_err(context, 1, ret, "Could not initialize CSR context");
if (opt->subject_string) { if (opt->subject_string) {
hx509_name name = NULL; hx509_name name = NULL;