s3-rpc_server: Use make_internal_rpc_pipe_socketpair().
authorAndreas Schneider <asn@samba.org>
Wed, 23 Oct 2013 15:04:12 +0000 (17:04 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Oct 2013 15:27:35 +0000 (16:27 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/srv_pipe_hnd.c

index 4fc6a72..8a26afb 100644 (file)
@@ -474,20 +474,21 @@ NTSTATUS np_open(TALLOC_CTX *mem_ctx, const char *name,
                        return NT_STATUS_OBJECT_NAME_NOT_FOUND;
                }
 
-               status = make_internal_rpc_pipe(handle,
-                                               msg_ctx,
-                                               name,
-                                               &syntax,
-                                               remote_address,
-                                               session_info,
-                                               &npa);
+               status = make_internal_rpc_pipe_socketpair(handle,
+                                                          ev_ctx,
+                                                          msg_ctx,
+                                                          name,
+                                                          &syntax,
+                                                          remote_address,
+                                                          session_info,
+                                                          &npa);
                if (!NT_STATUS_IS_OK(status)) {
                        talloc_free(handle);
                        return status;
                }
 
                handle->private_data = (void *)npa;
-               handle->type = FAKE_FILE_TYPE_NAMED_PIPE;
+               handle->type = FAKE_FILE_TYPE_NAMED_PIPE_PROXY;
 
                break;
        case RPC_SERVICE_MODE_DISABLED: