mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r6714: We can only ask GENSEC questions if we are authenticated.
Andrew Bartlett
(This used to be commit b429712f1e
)
This commit is contained in:
parent
369c53ccf4
commit
b5da6b2c85
@ -742,7 +742,9 @@ static NTSTATUS dcesrv_request(struct dcesrv_call_state *call)
|
||||
call->state_flags = call->conn->dce_ctx->state_flags;
|
||||
call->time = timeval_current();
|
||||
|
||||
if (!gensec_have_feature(call->conn->auth_state.gensec_security, GENSEC_FEATURE_ASYNC_REPLIES)) {
|
||||
/* if authenticated, and the mech we use can't do async replies, don't use them... */
|
||||
if (call->conn->auth_state.gensec_security &&
|
||||
!gensec_have_feature(call->conn->auth_state.gensec_security, GENSEC_FEATURE_ASYNC_REPLIES)) {
|
||||
call->state_flags &= ~DCESRV_CALL_STATE_FLAG_MAY_ASYNC;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user