1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

libnet keytab: test for matching enctype in libnet_keytab_search().

Michael
(This used to be commit 484b35f319)
This commit is contained in:
Michael Adam
2008-07-29 13:32:17 +02:00
parent 31c67f939f
commit 0f94a38580

View File

@ -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);