hx509: Fix EACCES / ENOMEM confusion

This commit is contained in:
Nicolas Williams
2023-11-01 19:19:03 -05:00
committed by Nico Williams
parent be0d1e68e5
commit 2ad736a579

View File

@@ -449,7 +449,8 @@ hx509_ca_tbs_set_from_csr(hx509_context context,
int ret;
if (hx509_request_count_unauthorized(req)) {
hx509_set_error_string(context, 0, ENOMEM, "out of memory");
hx509_set_error_string(context, 0, EACCES,
"Some certificate features requested in the CSR were not authorized");
return EACCES;
}