From 401bdd8bf33389d9b199258eaaa4e8377d74c44f Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 16 Jan 2022 22:32:18 -0500 Subject: [PATCH] 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 --- lib/hx509/req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hx509/req.c b/lib/hx509/req.c index 64eb543a1..7f04c99f0 100644 --- a/lib/hx509/req.c +++ b/lib/hx509/req.c @@ -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;