lib/hx509: hx509_request_get_san SAN_TYPE_PKINIT return failure
if _hx509_unparse_KRB5PrincipalName() fails return the error code to the hx509_request_get_san() caller. Change-Id: I3ad8ceda23f00263890115f292ca7e4c8ce9317b
This commit is contained in:
@@ -1377,7 +1377,7 @@ hx509_request_get_san(hx509_request req,
|
|||||||
&san->u.otherName.value);
|
&san->u.otherName.value);
|
||||||
if ((*out = rk_strpoolcollect(pool)) == NULL)
|
if ((*out = rk_strpoolcollect(pool)) == NULL)
|
||||||
return hx509_enomem(req->context);
|
return hx509_enomem(req->context);
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
*type = HX509_SAN_TYPE_UNSUPPORTED;
|
*type = HX509_SAN_TYPE_UNSUPPORTED;
|
||||||
|
Reference in New Issue
Block a user