From 4ed9437b7e24365b9acd179b6553793db95a4c54 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 20 Jul 2010 13:35:43 -0700 Subject: Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduce use of malloc, and data_blob(). Jeremy. --- source3/libads/sasl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libads/sasl.c') diff --git a/source3/libads/sasl.c b/source3/libads/sasl.c index 5cd523155a..1b62daf8db 100644 --- a/source3/libads/sasl.c +++ b/source3/libads/sasl.c @@ -780,7 +780,7 @@ static ADS_STATUS ads_sasl_spnego_bind(ADS_STRUCT *ads) /* the server sent us the first part of the SPNEGO exchange in the negprot reply */ - if (!spnego_parse_negTokenInit(blob, OIDs, &given_principal, NULL)) { + if (!spnego_parse_negTokenInit(talloc_tos(), blob, OIDs, &given_principal, NULL)) { data_blob_free(&blob); status = ADS_ERROR(LDAP_OPERATIONS_ERROR); goto failed; -- cgit