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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user