From f666e7d92c9506b4e0f5d8c638f3161cf9a44328 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 16 Apr 2000 16:16:30 +0000 Subject: [PATCH] (fcc_get_principal): be more truthful on errors git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8189 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/fcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/krb5/fcache.c b/lib/krb5/fcache.c index b7de079c1..0946f7666 100644 --- a/lib/krb5/fcache.c +++ b/lib/krb5/fcache.c @@ -346,10 +346,10 @@ fcc_get_principal(krb5_context context, ret = init_fcc (context, f, &sp, &fd); if (ret) return ret; - krb5_ret_principal(sp, principal); + ret = krb5_ret_principal(sp, principal); krb5_storage_free(sp); close(fd); - return 0; + return ret; } static krb5_error_code