diff options
-rw-r--r-- | source3/libnet/libnet_keytab.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libnet/libnet_keytab.c b/source3/libnet/libnet_keytab.c index e51cd05572..cc51c29326 100644 --- a/source3/libnet/libnet_keytab.c +++ b/source3/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); |