hxtool: Check hx509_request_init() return
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user