diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/rpc/dcerpc_sock.c | 4 | ||||
-rw-r--r-- | source4/torture/dcom/simple.c | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/source4/librpc/rpc/dcerpc_sock.c b/source4/librpc/rpc/dcerpc_sock.c index 26464884bc..361d0d4a5f 100644 --- a/source4/librpc/rpc/dcerpc_sock.c +++ b/source4/librpc/rpc/dcerpc_sock.c @@ -295,10 +295,6 @@ static NTSTATUS dcerpc_pipe_open_socket(struct dcerpc_pipe **p, struct fd_event fde; NTSTATUS status; - if (port == 0) { - port = EPMAPPER_PORT; - } - if (!(*p = dcerpc_pipe_init())) { return NT_STATUS_NO_MEMORY; } diff --git a/source4/torture/dcom/simple.c b/source4/torture/dcom/simple.c index 23db926880..2dc7e6f270 100644 --- a/source4/torture/dcom/simple.c +++ b/source4/torture/dcom/simple.c @@ -53,14 +53,13 @@ BOOL torture_dcom_simple(void) } ZERO_STRUCT(r_read); - status = dcerpc_IStream_Read(interfaces[0].pipe, &interfaces[0].ipid, mem_ctx, &r_read); + status = dcerpc_IStream_Read(interfaces[0].pipe, NULL, mem_ctx, &r_read); if (NT_STATUS_IS_ERR(error)) { printf("IStream::Read() failed - %s\n", win_errstr(error)); return False; } - - status = dcerpc_IStream_Write(interfaces[0].pipe, &interfaces[0].ipid, mem_ctx, &r_write); + status = dcerpc_IStream_Write(interfaces[0].pipe, NULL, mem_ctx, &r_write); if (NT_STATUS_IS_ERR(error)) { printf("IStream::Write() failed - %s\n", win_errstr(error)); return False; |