summaryrefslogtreecommitdiff
path: root/source3/libsmb/clispnego.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-01 16:55:04 +1100
committerJeremy Allison <jra@samba.org>2012-03-02 01:45:19 +0100
commitf1452a296429b79755235f4a480f0d5ea38ce178 (patch)
treebcefca10e79203b920db781543ff4e4ceb732cc4 /source3/libsmb/clispnego.c
parent049375ec51ef404e61963e1f6ba10c116fde9767 (diff)
downloadsamba-f1452a296429b79755235f4a480f0d5ea38ce178.tar.gz
samba-f1452a296429b79755235f4a480f0d5ea38ce178.tar.bz2
samba-f1452a296429b79755235f4a480f0d5ea38ce178.zip
s3-libsmb: Initialise ticket to ensure we do not invalid memory
The free is however a talloc_free(), which has additional protection against freeing the wrong thing. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Mar 2 01:45:19 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/libsmb/clispnego.c')
-rw-r--r--source3/libsmb/clispnego.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c
index 2cc2a2a5f1..bf3fac658d 100644
--- a/source3/libsmb/clispnego.c
+++ b/source3/libsmb/clispnego.c
@@ -255,6 +255,7 @@ bool spnego_parse_krb5_wrap(TALLOC_CTX *ctx, DATA_BLOB blob, DATA_BLOB *ticket,
bool ret;
ASN1_DATA *data;
int data_remaining;
+ *ticket = data_blob_null;
data = asn1_init(talloc_tos());
if (data == NULL) {