summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-08-31 22:27:32 +0200
committerGünther Deschner <gd@samba.org>2010-08-31 23:17:39 +0200
commit765bee9d7a2ea990db37e7811fe449af3c61e7a0 (patch)
tree8d1de21ed1d8eb8b9c4b3876c74a3c62f63febc3 /source3/librpc
parente26a9363335fa0c6e72f46531395bf0f9d950e83 (diff)
downloadsamba-765bee9d7a2ea990db37e7811fe449af3c61e7a0.tar.gz
samba-765bee9d7a2ea990db37e7811fe449af3c61e7a0.tar.bz2
samba-765bee9d7a2ea990db37e7811fe449af3c61e7a0.zip
s3-kerberos: use smb_get_enctype_from_kt_entry() in
get_mem_keytab_from_secrets(). Guenther
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/rpc/dcerpc_krb5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/librpc/rpc/dcerpc_krb5.c b/source3/librpc/rpc/dcerpc_krb5.c
index bc1fcbd09e..5a8a8f733d 100644
--- a/source3/librpc/rpc/dcerpc_krb5.c
+++ b/source3/librpc/rpc/dcerpc_krb5.c
@@ -209,7 +209,7 @@ static krb5_error_code get_mem_keytab_from_secrets(krb5_context krbctx,
* we can verify if the keytab needs to be upgraded */
while ((ret = krb5_kt_next_entry(krbctx, *keytab,
&kt_entry, &kt_cursor)) == 0) {
- if (kt_entry.key.enctype == CLEARTEXT_PRIV_ENCTYPE) {
+ if (smb_get_enctype_from_kt_entry(&kt_entry) == CLEARTEXT_PRIV_ENCTYPE) {
break;
}
smb_krb5_kt_free_entry(krbctx, &kt_entry);