From: John Kohl Date: Fri, 19 Apr 1991 13:34:41 +0000 (+0000) Subject: parameterize using htons/etc. X-Git-Tag: krb5-1.0-alpha5~101 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=729e1d90571b6231faefbeb6d3858e59a8f42187;p=krb5.git 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 --- 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;