From 81e4a28718632c1e5173ecb8b16db43cde439254 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 27 Feb 2007 14:24:49 +0000 Subject: r21561: It makes absolutely no sense to call krb5_kt_resolve() two times directly after another. Guenther (This used to be commit 76ba11d7770bac7c6db2eb1640139bbe270d82c3) --- source3/libads/kerberos_keytab.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source3/libads') diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c index 4b640151d3..ba1a916567 100644 --- a/source3/libads/kerberos_keytab.c +++ b/source3/libads/kerberos_keytab.c @@ -408,12 +408,7 @@ int ads_keytab_flush(ADS_STRUCT *ads) DEBUG(3,("ads_keytab_flush: Using default keytab: %s\n", (char *) &keytab_name)); ret = krb5_kt_resolve(context, (char *) &keytab_name, &keytab); if (ret) { - DEBUG(1,("ads_keytab_flush: krb5_kt_default failed (%s)\n", error_message(ret))); - goto out; - } - ret = krb5_kt_resolve(context, (char *) &keytab_name, &keytab); - if (ret) { - DEBUG(1,("ads_keytab_flush: krb5_kt_default failed (%s)\n", error_message(ret))); + DEBUG(1,("ads_keytab_flush: krb5_kt_resolve failed (%s)\n", error_message(ret))); goto out; } -- cgit