From 49af073ed77202a54dfdd773cbcbbf7835c75baf Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Mon, 28 Mar 2022 10:02:13 -0700 Subject: heimdal: Vendor import 7.7.0 --- lib/krb5/build_auth.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/krb5/build_auth.c') diff --git a/lib/krb5/build_auth.c b/lib/krb5/build_auth.c index 003ccae8cc87..cbc67744a4e1 100644 --- a/lib/krb5/build_auth.c +++ b/lib/krb5/build_auth.c @@ -117,8 +117,12 @@ _krb5_build_authenticator (krb5_context context, memset(&auth, 0, sizeof(auth)); auth.authenticator_vno = 5; - copy_Realm(&cred->client->realm, &auth.crealm); - copy_PrincipalName(&cred->client->name, &auth.cname); + ret = copy_Realm(&cred->client->realm, &auth.crealm); + if (ret) + goto fail; + ret = copy_PrincipalName(&cred->client->name, &auth.cname); + if (ret) + goto fail; krb5_us_timeofday (context, &auth.ctime, &auth.cusec); -- cgit v1.2.3