s3: Lift talloc_autofree_context() from make_auth_context_subsystem()
[ira/wip.git] / source3 / rpc_server / srv_netlog_nt.c
index d821b04cdc5f2234663d38e9e1c216da5c5ccdde..963737f8970c3f348ee41bb0f90a1f5771b87bf0 100644 (file)
@@ -1360,7 +1360,9 @@ static NTSTATUS _netr_LogonSamLogon_base(struct pipes_struct *p,
        {
                uint8_t chal[8];
 
-               if (!NT_STATUS_IS_OK(status = make_auth_context_subsystem(&auth_context))) {
+               status = make_auth_context_subsystem(talloc_tos(),
+                                                    &auth_context);
+               if (!NT_STATUS_IS_OK(status)) {
                        return status;
                }