1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3-libads: avoid crashing in ads_keytab_list().

Heimdal's krb5_kt_start_seq_get() will leave a non 0 fd in the krb5_kt_cursor
struct when it cannot find a given keytab.

Guenther
This commit is contained in:
Günther Deschner 2010-08-31 14:27:56 +02:00
parent d5436c650c
commit bf3912be46

View File

@ -756,6 +756,7 @@ int ads_keytab_list(const char *keytab_name)
ret = krb5_kt_start_seq_get(context, keytab, &cursor); ret = krb5_kt_start_seq_get(context, keytab, &cursor);
if (ret) { if (ret) {
ZERO_STRUCT(cursor);
goto out; goto out;
} }