summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_pipe.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 49a27b9b0b..96b3cc5c87 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -808,10 +808,15 @@ static bool api_pipe_bind_req(struct pipes_struct *p,
break;
case DCERPC_AUTH_TYPE_SCHANNEL:
- if (!pipe_schannel_auth_bind(p, pkt,
- &auth_info, &auth_resp)) {
+ if (!pipe_auth_generic_bind(p, pkt,
+ &auth_info, &auth_resp)) {
+ goto err_exit;
+ }
+ if (!session_info_set_session_key(p->session_info, generic_session_key())) {
+ DEBUG(0, ("session_info_set_session_key failed\n"));
goto err_exit;
}
+ p->pipe_bound = true;
break;
case DCERPC_AUTH_TYPE_SPNEGO: