summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-05-11 09:43:04 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-05-11 09:43:04 +0000
commit348384e3529c2462ae0559746c3d8b69d98294ea (patch)
treee8ff77faaae6291a0981cff166b2430f32b2b7c7 /src/lib
parentd0d66308dcdf90f38e5fc279c6321253c253fdc1 (diff)
remove assert
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@834 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/ccache/ccdefault.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/krb5/ccache/ccdefault.c b/src/lib/krb5/ccache/ccdefault.c
index b3f9efc4e..8517fdeaa 100644
--- a/src/lib/krb5/ccache/ccdefault.c
+++ b/src/lib/krb5/ccache/ccdefault.c
@@ -5,7 +5,7 @@
* Copyright 1990 by the Massachusetts Institute of Technology.
*
* For copying and distribution information, please see the file
- * <krb5/mit-copyright.h>.
+ * <krb5/copyright.h>.
*
* Find default credential cache
*/
@@ -15,9 +15,6 @@ static char rcsid_default_c[] =
"$Id$";
#endif /* !lint & !SABER */
-#include <stdio.h>
-#include <assert.h>
-
#include <krb5/copyright.h>
#include <krb5/krb5.h>
@@ -25,8 +22,11 @@ static krb5_ccache default_ccache;
krb5_ccache krb5_cc_default()
{
- if (default_ccache == 0)
- assert(krb5_cc_resolve (krb5_cc_default_name(), &default_ccache) == 0); /* XXX error handling? */
+ if (default_ccache == 0)
+ krb5_cc_resolve(krb5_cc_default_name(), &default_ccache);
+
+ /* ignore errors; any error will be fatal in future derefs by the
+ caller. */
return default_ccache;
}