git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5436c6
)
s3-libads: avoid crashing in ads_keytab_list().
author
Günther Deschner
<gd@samba.org>
Tue, 31 Aug 2010 12:27:56 +0000
(14:27 +0200)
committer
Günther Deschner
<gd@samba.org>
Tue, 31 Aug 2010 21:17:39 +0000
(23:17 +0200)
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
patch
|
blob
|
history
diff --git
a/source3/libads/kerberos_keytab.c
b/source3/libads/kerberos_keytab.c
index 94698c6cc29f17c7ca5a3ddd9818b26134eb2709..721a8c6f53086faf0b058eca690d76c79c2e4e64 100644
(file)
--- 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;
}