From bf3912be46b2cac71a1ff89f548b9e3528872c6c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 31 Aug 2010 14:27:56 +0200 Subject: 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 --- source3/libads/kerberos_keytab.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c index 94698c6cc2..721a8c6f53 100644 --- a/source3/libads/kerberos_keytab.c +++ b/source3/libads/kerberos_keytab.c @@ -756,6 +756,7 @@ int ads_keytab_list(const char *keytab_name) ret = krb5_kt_start_seq_get(context, keytab, &cursor); if (ret) { + ZERO_STRUCT(cursor); goto out; } -- cgit