auth/ntlmssp: remove useless talloc_steal calls in ntlmssp_server_check_password()
authorStefan Metzmacher <metze@samba.org>
Fri, 16 Jun 2017 16:03:11 +0000 (18:03 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 26 Jun 2017 06:47:15 +0000 (08:47 +0200)
commitc6b37a0e1dff557ca8e200b47eff50d89c180e30
treec16e371e8c1ce40dfc3c5c3203966e3db294fac0
parentebb63e1cb3a40b3af691c56dd0ae2c6cfdccf9ec
auth/ntlmssp: remove useless talloc_steal calls in ntlmssp_server_check_password()

We only create a temporary auth_usersupplied_info structure and pass it
down as const, lets keep the values on ntlmssp_state otherwise we may derefence
stale pointers.

We finally free the memory at the end of ntlmssp_server_postauth() now.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/ntlmssp/ntlmssp_server.c