From 348384e3529c2462ae0559746c3d8b69d98294ea Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 11 May 1990 09:43:04 +0000 Subject: [PATCH] remove assert git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@834 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/ccdefault.c | 12 ++++++------ 1 file 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 - * . + * . * * Find default credential cache */ @@ -15,9 +15,6 @@ static char rcsid_default_c[] = "$Id$"; #endif /* !lint & !SABER */ -#include -#include - #include #include @@ -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; } -- 2.26.2