summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-08-19 07:35:01 -0400
committerSimo Sorce <idra@samba.org>2010-08-19 11:28:12 -0400
commitcbe9f879afc7b212c1e105fcb54b4563d5f6dfe0 (patch)
treea89214805fa87a6a83e4c55bf75c1d461f0ecdea /source3/libads
parent861566c6d03a9040d0b791df80c845da9c537b8f (diff)
downloadsamba-cbe9f879afc7b212c1e105fcb54b4563d5f6dfe0.tar.gz
samba-cbe9f879afc7b212c1e105fcb54b4563d5f6dfe0.tar.bz2
samba-cbe9f879afc7b212c1e105fcb54b4563d5f6dfe0.zip
s3-ads: Fix wrong test in if statement
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos_keytab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c
index 10c7087c96..94698c6cc2 100644
--- a/source3/libads/kerberos_keytab.c
+++ b/source3/libads/kerberos_keytab.c
@@ -56,7 +56,7 @@ static krb5_error_code seek_and_delete_old_entries(krb5_context context,
ZERO_STRUCT(zero_kt_entry);
ret = krb5_kt_start_seq_get(context, keytab, &cursor);
- if (ret == KRB5_KT_END && ret == ENOENT ) {
+ if (ret == KRB5_KT_END || ret == ENOENT ) {
/* no entries */
return 0;
}