diff options
author | Günther Deschner <gd@samba.org> | 2007-02-27 14:24:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:13 -0500 |
commit | 81e4a28718632c1e5173ecb8b16db43cde439254 (patch) | |
tree | d56d216e18355137061653900b7dfcb98f513d62 /source3/libads | |
parent | 5c0d13a8ae7dd377f799aaa82555fc37223d3310 (diff) | |
download | samba-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)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos_keytab.c | 7 |
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; } |