From 1c474702bb76a3342b12ebba5a455ec9f8bd67c1 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 8 Mar 1997 07:16:26 +0000 Subject: [PATCH] now seems to work again git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1289 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/cache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/krb5/cache.c b/lib/krb5/cache.c index 9e86b5cfe..4ca6050f8 100644 --- a/lib/krb5/cache.c +++ b/lib/krb5/cache.c @@ -316,9 +316,10 @@ krb5_cc_next_cred (krb5_context context, if (id->type != 1) abort (); - krb5_storage_from_fd(cursor->fd); - err = krb5_cc_read_cred (sp, creds); + sp = krb5_storage_from_fd(cursor->fd); + err = krb5_cc_read_cred (cursor->fd, creds); krb5_storage_free(sp); + return err; } krb5_error_code