check return value instead of guessing on variable

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24838 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-02-27 03:27:40 +00:00
parent c0f4693926
commit 7edaf92f13

View File

@@ -562,10 +562,8 @@ krb5_digest_set_authentication_user(krb5_context context,
ret = krb5_copy_principal(context,
authentication_user,
&digest->request.authentication_user);
if (digest->request.authentication_user == NULL) {
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
return ENOMEM;
}
if (ret)
return ret;
return 0;
}