summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-05-10 16:30:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:37 -0500
commitb5da6b2c853b2aca572435ef989148adbf2f3ff0 (patch)
tree4c1b090216710bc8f932c18f2519b37c09e2534c /source4
parent369c53ccf418cf50c9b94b639b809a3553b4e7ea (diff)
downloadsamba-b5da6b2c853b2aca572435ef989148adbf2f3ff0.tar.gz
samba-b5da6b2c853b2aca572435ef989148adbf2f3ff0.tar.bz2
samba-b5da6b2c853b2aca572435ef989148adbf2f3ff0.zip
r6714: We can only ask GENSEC questions if we are authenticated.
Andrew Bartlett (This used to be commit b429712f1e8234c64138aaa8ff67dce94988406c)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/dcerpc_server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index 12e24859ec..52da43a35e 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -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;
}