From 729e1d90571b6231faefbeb6d3858e59a8f42187 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 19 Apr 1991 13:34:41 +0000 Subject: [PATCH] parameterize using htons/etc. don't call abort(), return an error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2000 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/file/fcc_maybe.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/ccache/file/fcc_maybe.c b/src/lib/krb5/ccache/file/fcc_maybe.c index b5d0b34b8..1ff94977a 100644 --- a/src/lib/krb5/ccache/file/fcc_maybe.c +++ b/src/lib/krb5/ccache/file/fcc_maybe.c @@ -17,7 +17,14 @@ static char rcsid_fcc_maybe_c[] = #endif /* !lint & !SABER */ #include "fcc.h" +#include + +#ifdef KRB5_USE_INET #include /* XXX ip only? */ +#else + #error find some way to use net-byte-order file version numbers. +#endif + #include #include #include @@ -100,9 +107,9 @@ krb5_fcc_close_file (id) krb5_fcc_data *data = (krb5_fcc_data *)id->data; krb5_error_code retval; - if (data->fd == -1) { - abort (); /* XXX? */ - } + if (data->fd == -1) + return KRB5_FCC_INTERNAL; + retval = fcc_lock_file(data, data->fd, UNLOCK_IT); ret = close (data->fd); data->fd = -1; -- 2.26.2