diff options
Diffstat (limited to 'crypto/heimdal/kuser/klist.c')
-rw-r--r-- | crypto/heimdal/kuser/klist.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crypto/heimdal/kuser/klist.c b/crypto/heimdal/kuser/klist.c index 79a1fa4..3521e2e 100644 --- a/crypto/heimdal/kuser/klist.c +++ b/crypto/heimdal/kuser/klist.c @@ -34,7 +34,7 @@ #include "kuser_locl.h" #include "rtbl.h" -RCSID("$Id: klist.c,v 1.68.2.1 2003/05/08 18:59:56 lha Exp $"); +RCSID("$Id: klist.c,v 1.68.2.2 2003/10/13 15:13:39 joda Exp $"); static char* printable_time(time_t t) @@ -273,10 +273,10 @@ print_tickets (krb5_context context, rtbl_set_prefix(ct, " "); rtbl_set_column_prefix(ct, COL_ISSUED, ""); } - while (krb5_cc_next_cred (context, - ccache, - &cursor, - &creds) == 0) { + while ((ret = krb5_cc_next_cred (context, + ccache, + &cursor, + &creds)) == 0) { if(do_verbose){ print_cred_verbose(context, &creds); }else{ @@ -284,6 +284,8 @@ print_tickets (krb5_context context, } krb5_free_creds_contents (context, &creds); } + if(ret != KRB5_CC_END) + krb5_err(context, 1, ret, "krb5_cc_get_next"); ret = krb5_cc_end_seq_get (context, ccache, &cursor); if (ret) krb5_err (context, 1, ret, "krb5_cc_end_seq_get"); |