From 484b35f319178f360e406a1bc725dca2e9d95ee3 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 29 Jul 2008 13:32:17 +0200 Subject: [PATCH] libnet keytab: test for matching enctype in libnet_keytab_search(). Michael --- source/libnet/libnet_keytab.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/libnet/libnet_keytab.c b/source/libnet/libnet_keytab.c index e51cd055729..cc51c29326a 100644 --- a/source/libnet/libnet_keytab.c +++ b/source/libnet/libnet_keytab.c @@ -167,6 +167,11 @@ struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *c continue; } + if (kt_entry.key.enctype != enctype) { + smb_krb5_kt_free_entry(ctx->context, &kt_entry); + continue; + } + ret = smb_krb5_unparse_name(ctx->context, kt_entry.principal, &princ_s); if (ret) { smb_krb5_kt_free_entry(ctx->context, &kt_entry); -- 2.11.4.GIT