From c433df9fa71c1d4edfcdebdb378bf512c2d297c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 28 Sep 2008 05:14:41 +0000 Subject: [PATCH] use krb5_is_config_principal() git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23867 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kuser/klist.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kuser/klist.c b/kuser/klist.c index 7e9605a56..8e6bd19a3 100644 --- a/kuser/klist.c +++ b/kuser/klist.c @@ -282,9 +282,7 @@ print_tickets (krb5_context context, ccache, &cursor, &creds)) == 0) { - const char *str; - str = krb5_principal_get_comp_string(context, creds.server, 0); - if (!do_hidden && str && str[0] == '@') { + if (!do_hidden && krb5_is_config_principal(context, creds.server)) { ; }else if(do_verbose){ print_cred_verbose(context, &creds);