diff options
author | Jeremy Allison <jra@samba.org> | 2012-09-25 16:35:09 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2012-09-28 09:23:08 +0200 |
commit | d5f5a6a37c0c06c7e5b783da8636f0bcd23d6c07 (patch) | |
tree | d04aa4eaa771d87a5c2218f32a2ec3b02afbe190 | |
parent | 4d295c9aed8234e561ed6c79473b061390f5ceec (diff) | |
download | samba-d5f5a6a37c0c06c7e5b783da8636f0bcd23d6c07.tar.gz |
Fix bug #9213 - Bad ASN.1 NegTokenInit packet can cause invalid free.
Not the correct fix for the specific issue, but a general fix to
make sure this can never happen again.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep 26 04:07:57 CEST 2012 on sn-devel-104
(cherry picked from commit 83f60672e1b3069e6b1b90b376460da895e37df3)
-rw-r--r-- | source3/libsmb/clispnego.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c index a17efbf75b2..9b4f8f9637a 100644 --- a/source3/libsmb/clispnego.c +++ b/source3/libsmb/clispnego.c @@ -103,6 +103,10 @@ bool spnego_parse_negTokenInit(TALLOC_CTX *ctx, bool ret; ASN1_DATA *data; + for (i = 0; i < ASN1_MAX_OIDS; i++) { + OIDs[i] = NULL; + } + data = asn1_init(talloc_tos()); if (data == NULL) { return false; |