check for NULL remove_cred function

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9274 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2000-12-05 09:18:29 +00:00
parent 652ab82f80
commit 0aa7857674

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997-1999 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997-2000 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -356,7 +356,9 @@ krb5_cc_remove_cred(krb5_context context,
krb5_flags which,
krb5_creds *cred)
{
return id->ops->remove_cred(context, id, which, cred);
if(id->ops->remove_cred == NULL)
return EACCES; /* XXX */
return (*id->ops->remove_cred)(context, id, which, cred);
}
/*