s4:rpc_server/lsa: make use of dcesrv_transport_session_key()
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Nov 2018 10:52:29 +0000 (11:52 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:33 +0000 (03:13 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/rpc_server/lsa/dcesrv_lsa.c

index d6c4c72..f5f5b37 100644 (file)
@@ -859,7 +859,7 @@ static NTSTATUS get_trustdom_auth_blob(struct dcesrv_call_state *dce_call,
        enum ndr_err_code ndr_err;
        NTSTATUS nt_status;
 
-       nt_status = dcesrv_fetch_session_key(dce_call->conn, &session_key);
+       nt_status = dcesrv_transport_session_key(dce_call, &session_key);
        if (!NT_STATUS_IS_OK(nt_status)) {
                return nt_status;
        }
@@ -3494,7 +3494,7 @@ static NTSTATUS dcesrv_lsa_SetSecret(struct dcesrv_call_state *dce_call, TALLOC_
        if (!msg->dn) {
                return NT_STATUS_NO_MEMORY;
        }
-       status = dcesrv_fetch_session_key(dce_call->conn, &session_key);
+       status = dcesrv_transport_session_key(dce_call, &session_key);
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
@@ -3671,7 +3671,7 @@ static NTSTATUS dcesrv_lsa_QuerySecret(struct dcesrv_call_state *dce_call, TALLO
        }
        msg = res[0];
 
-       nt_status = dcesrv_fetch_session_key(dce_call->conn, &session_key);
+       nt_status = dcesrv_transport_session_key(dce_call, &session_key);
        if (!NT_STATUS_IS_OK(nt_status)) {
                return nt_status;
        }