svn commit: samba r6714 - in branches/SAMBA_4_0/source/rpc_server: .

abartlet at samba.org abartlet at samba.org
Tue May 10 16:30:52 GMT 2005


Author: abartlet
Date: 2005-05-10 16:30:51 +0000 (Tue, 10 May 2005)
New Revision: 6714

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6714

Log:
We can only ask GENSEC questions if we are authenticated.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c	2005-05-10 16:24:42 UTC (rev 6713)
+++ branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c	2005-05-10 16:30:51 UTC (rev 6714)
@@ -742,7 +742,9 @@
 	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;
 	}
 



More information about the samba-cvs mailing list