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:
Jeffrey Altman
2022-01-16 22:32:18 -05:00
parent 424aa1cb78
commit 401bdd8bf3

View File

@@ -1377,7 +1377,7 @@ hx509_request_get_san(hx509_request req,
&san->u.otherName.value);
if ((*out = rk_strpoolcollect(pool)) == NULL)
return hx509_enomem(req->context);
return 0;
return ret;
}
default:
*type = HX509_SAN_TYPE_UNSUPPORTED;