summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-11 01:53:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:40 -0500
commit5423fd3b354398be5f031cbefb8d0c01f33e0a6a (patch)
treee76f6b3f82435eba9b27f6213d3875f97ffa164b /source4/rpc_server
parentdaf67d76fcd9bca51a95b62a51ed5525ec24c427 (diff)
downloadsamba-5423fd3b354398be5f031cbefb8d0c01f33e0a6a.tar.gz
samba-5423fd3b354398be5f031cbefb8d0c01f33e0a6a.tar.bz2
samba-5423fd3b354398be5f031cbefb8d0c01f33e0a6a.zip
r4663: fixed SPNEGO auth in the rpc server
(This used to be commit 439cbb9ead2443513ecc84f5638924e056ebdc73)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dcesrv_auth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/rpc_server/dcesrv_auth.c b/source4/rpc_server/dcesrv_auth.c
index 91b579b9e4..62c879408f 100644
--- a/source4/rpc_server/dcesrv_auth.c
+++ b/source4/rpc_server/dcesrv_auth.c
@@ -239,8 +239,9 @@ BOOL dcesrv_auth_alter_ack(struct dcesrv_call_state *call, struct dcerpc_packet
struct dcesrv_connection *dce_conn = call->conn;
NTSTATUS status;
- /* on a pure interface change there is no auth blob */
- if (pkt->u.alter.auth_info.length == 0) {
+ /* on a pure interface change there is no auth_info structure
+ setup */
+ if (!call->conn->auth_state.auth_info) {
return True;
}
@@ -252,7 +253,7 @@ BOOL dcesrv_auth_alter_ack(struct dcesrv_call_state *call, struct dcerpc_packet
call,
dce_conn->auth_state.auth_info->credentials,
&dce_conn->auth_state.auth_info->credentials);
-
+
if (NT_STATUS_IS_OK(status)) {
status = gensec_session_info(dce_conn->auth_state.gensec_security,
&dce_conn->auth_state.session_info);