Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduce
[mat/samba.git] / source3 / libads / sasl.c
index 5cd523155a67d2b56274b5e60bfe9b9e8b83e841..1b62daf8db8a8de695b743d3a99ec7da40e9762b 100644 (file)
@@ -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;