From 1e46fc672a455879d5c276c21b17db89954b2e42 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 10 Aug 2008 18:23:50 +0100 Subject: [PATCH] rpcrt4: Fix the protid used in ncalrpc tower functions. The epm tower for the ncalrpc protseq should have a floor with a protid of EPM_PROTOCOL_PIPE instead of EPM_PROTOCOL_SMB. --- dlls/rpcrt4/rpc_transport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c index 9d700887b9..a797646dce 100644 --- a/dlls/rpcrt4/rpc_transport.c +++ b/dlls/rpcrt4/rpc_transport.c @@ -688,7 +688,7 @@ static size_t rpcrt4_ncalrpc_get_top_of_tower(unsigned char *tower_data, tower_data += sizeof(*pipe_floor); pipe_floor->count_lhs = sizeof(pipe_floor->protid); - pipe_floor->protid = EPM_PROTOCOL_SMB; + pipe_floor->protid = EPM_PROTOCOL_PIPE; pipe_floor->count_rhs = endpoint_size; memcpy(tower_data, endpoint, endpoint_size); @@ -713,7 +713,7 @@ static RPC_STATUS rpcrt4_ncalrpc_parse_top_of_tower(const unsigned char *tower_d tower_size -= sizeof(*pipe_floor); if ((pipe_floor->count_lhs != sizeof(pipe_floor->protid)) || - (pipe_floor->protid != EPM_PROTOCOL_SMB) || + (pipe_floor->protid != EPM_PROTOCOL_PIPE) || (pipe_floor->count_rhs > tower_size)) return EPT_S_NOT_REGISTERED; -- 2.32.0.93.g670b81a890