diff options
author | Günther Deschner <gd@samba.org> | 2010-08-31 14:27:56 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-08-31 23:17:39 +0200 |
commit | bf3912be46b2cac71a1ff89f548b9e3528872c6c (patch) | |
tree | a239ab340a34fc4b871944f61c83464d07a82eeb /source3 | |
parent | d5436c650c806bb04424205b1d5c9c699b051d7d (diff) | |
download | samba-bf3912be46b2cac71a1ff89f548b9e3528872c6c.tar.gz samba-bf3912be46b2cac71a1ff89f548b9e3528872c6c.tar.bz2 samba-bf3912be46b2cac71a1ff89f548b9e3528872c6c.zip |
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
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/kerberos_keytab.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |