1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4-ldap_server: Do not set conn->session_info to NULL, keep valid at all times

We need this to be valid, right up until a new session_info is created and
it is replaced.

We need this to have a valid value at all times, and we are still anonymous
until the new bind completes

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-by: Gary Lockyer <gary@catalyst.net.nz>
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett 2017-03-09 15:10:14 +13:00
parent 1cca9d6dce
commit 9ffdb84600

View File

@ -251,8 +251,6 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
*/
if (!conn->gensec) {
conn->session_info = NULL;
status = ldapsrv_setup_gensec(conn, req->creds.SASL.mechanism,
&conn->gensec);
if (!NT_STATUS_IS_OK(status)) {