mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
s4:rpc_server: add some protection checks to dcesrv_auth_prepare_gensec()
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:
parent
2640f60e88
commit
76976eab01
@ -40,6 +40,18 @@ static bool dcesrv_auth_prepare_gensec(struct dcesrv_call_state *call)
|
||||
bool want_header_signing = false;
|
||||
NTSTATUS status;
|
||||
|
||||
if (auth->auth_invalid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (auth->auth_finished) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (auth->gensec_security != NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (call->in_auth_info.auth_level) {
|
||||
case DCERPC_AUTH_LEVEL_CONNECT:
|
||||
case DCERPC_AUTH_LEVEL_CALL:
|
||||
|
Loading…
x
Reference in New Issue
Block a user