hx509: Fix EACCES / ENOMEM confusion
This commit is contained in:

committed by
Nico Williams

parent
be0d1e68e5
commit
2ad736a579
@@ -449,7 +449,8 @@ hx509_ca_tbs_set_from_csr(hx509_context context,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (hx509_request_count_unauthorized(req)) {
|
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;
|
return EACCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user