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 | 76ba11d7770bac7c6db2eb1640139bbe270d82c3 (patch) | |
tree | a34c73aa29cdde0f2c658e6404da1d97b5ef3c16 /source/libads | |
parent | 28ce79629bc36929f508c1ccb1d27d48e8898045 (diff) | |
download | samba-76ba11d7770bac7c6db2eb1640139bbe270d82c3.tar.gz samba-76ba11d7770bac7c6db2eb1640139bbe270d82c3.tar.xz samba-76ba11d7770bac7c6db2eb1640139bbe270d82c3.zip |
r21561: It makes absolutely no sense to call krb5_kt_resolve() two times
directly after another.
Guenther
Diffstat (limited to 'source/libads')
-rw-r--r-- | source/libads/kerberos_keytab.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/libads/kerberos_keytab.c b/source/libads/kerberos_keytab.c index 4b640151d3d..ba1a9165674 100644 --- a/source/libads/kerberos_keytab.c +++ b/source/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; } |