summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-02-27 14:24:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:13 -0500
commit81e4a28718632c1e5173ecb8b16db43cde439254 (patch)
treed56d216e18355137061653900b7dfcb98f513d62
parent5c0d13a8ae7dd377f799aaa82555fc37223d3310 (diff)
downloadsamba-81e4a28718632c1e5173ecb8b16db43cde439254.tar.gz
samba-81e4a28718632c1e5173ecb8b16db43cde439254.tar.bz2
samba-81e4a28718632c1e5173ecb8b16db43cde439254.zip
r21561: It makes absolutely no sense to call krb5_kt_resolve() two times
directly after another. Guenther (This used to be commit 76ba11d7770bac7c6db2eb1640139bbe270d82c3)
-rw-r--r--source3/libads/kerberos_keytab.c7
1 files changed, 1 insertions, 6 deletions
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;
}