auth3: Use talloc_move instead of _steal
authorVolker Lendecke <vl@samba.org>
Sun, 19 Feb 2017 13:23:58 +0000 (14:23 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 8 Mar 2017 21:01:15 +0000 (22:01 +0100)
That's the more "modern" way to steal

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/auth/auth.c

index 7d0d4c073225ca4a06f4febaf611f91cc22adaba..c5392a5889e3e3b1238060b0a0167e8bc7a5f345 100644 (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;
                }