diff options
author | Jeremy Allison <jra@samba.org> | 2010-07-20 13:35:43 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-07-20 13:35:43 -0700 |
commit | 4ed9437b7e24365b9acd179b6553793db95a4c54 (patch) | |
tree | be148ed36f2f057a596e366b35e5b99380b1d370 /source3/libads | |
parent | dc443ee6e9e97c08bcceaa1cbc155635e73e8118 (diff) | |
download | samba-4ed9437b7e24365b9acd179b6553793db95a4c54.tar.gz samba-4ed9437b7e24365b9acd179b6553793db95a4c54.tar.bz2 samba-4ed9437b7e24365b9acd179b6553793db95a4c54.zip |
Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduce
use of malloc, and data_blob().
Jeremy.
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/sasl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |