1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

auth3: Use talloc_move instead of _steal

That's the more "modern" way to steal

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2017-02-19 14:23:58 +01:00 committed by Jeremy Allison
parent 1bbbc152d3
commit d31bf0e29d

View File

@ -257,7 +257,7 @@ NTSTATUS auth_check_ntlm_password(TALLOC_CTX *mem_ctx,
}
if (NT_STATUS_IS_OK(nt_status)) {
*pserver_info = talloc_steal(mem_ctx, server_info);
*pserver_info = talloc_move(mem_ctx, &server_info);
TALLOC_FREE(tmp_ctx);
break;
}