1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:rpc_server: allow a NULL function pointer in dcesrv_fetch_session_key()

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>
This commit is contained in:
Stefan Metzmacher 2018-11-08 09:45:15 +01:00 committed by Jeremy Allison
parent 2f5c344bfc
commit 851c06f40b

View File

@ -489,7 +489,14 @@ _PUBLIC_ NTSTATUS dcesrv_auth_session_key(struct dcesrv_call_state *call,
_PUBLIC_ NTSTATUS dcesrv_fetch_session_key(struct dcesrv_connection *p,
DATA_BLOB *session_key)
{
NTSTATUS status = p->auth_state.session_key(p, session_key);
struct dcesrv_auth *auth = &p->auth_state;
NTSTATUS status;
if (auth->session_key == NULL) {
return NT_STATUS_NO_USER_SESSION_KEY;
}
status = auth->session_key(p, session_key);
if (!NT_STATUS_IS_OK(status)) {
return status;
}