git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bug #9213 - Bad ASN.1 NegTokenInit packet can cause invalid free.
[samba.git]
/
source3
/
libsmb
/
clispnego.c
diff --git
a/source3/libsmb/clispnego.c
b/source3/libsmb/clispnego.c
index 33225290f9ebab325f41f4aa2aaa6f2247cd2a5c..49b484b56c2405fc69198c2644da46412f38d497 100644
(file)
--- a/
source3/libsmb/clispnego.c
+++ b/
source3/libsmb/clispnego.c
@@
-136,6
+136,10
@@
bool spnego_parse_negTokenInit(DATA_BLOB blob,
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;