summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-02-27 13:25:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:13 -0500
commit3e946cbb85b387a943a834df172c09801971f7e8 (patch)
tree1941e849fe274406325fc2378be351badbc4187b
parent2fb172f2354080dbe422b33ef3e114e00fcd5415 (diff)
downloadsamba-3e946cbb85b387a943a834df172c09801971f7e8.tar.gz
samba-3e946cbb85b387a943a834df172c09801971f7e8.tar.bz2
samba-3e946cbb85b387a943a834df172c09801971f7e8.zip
r21556: Remove superfluos return check in ads_keytab_verify_ticket().
Guenther (This used to be commit 020601ea0abeb15f2aef9da354fcf6d7d5459710)
-rw-r--r--source3/libads/kerberos_verify.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c
index dc2f2a1e78..03e30a9ba3 100644
--- a/source3/libads/kerberos_verify.c
+++ b/source3/libads/kerberos_verify.c
@@ -88,7 +88,6 @@ static BOOL ads_keytab_verify_ticket(krb5_context context, krb5_auth_context aut
goto out;
}
- if (ret != KRB5_KT_END && ret != ENOENT ) {
while (!auth_ok && (krb5_kt_next_entry(context, keytab, &kt_entry, &kt_cursor) == 0)) {
ret = smb_krb5_unparse_name(context, kt_entry.principal, &entry_princ_s);
if (ret) {
@@ -146,7 +145,6 @@ static BOOL ads_keytab_verify_ticket(krb5_context context, krb5_auth_context aut
ZERO_STRUCT(kt_entry);
}
krb5_kt_end_seq_get(context, keytab, &kt_cursor);
- }
ZERO_STRUCT(kt_cursor);