From 3024b530c9d34728848f7a5d894f716c0480b350 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 31 Jan 2008 14:45:22 +0000 Subject: [PATCH] rpcrt4: Fix some incorrect checks in RPCRT4_Receive. --- dlls/rpcrt4/rpc_message.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/rpcrt4/rpc_message.c b/dlls/rpcrt4/rpc_message.c index de6f97dc6b3..74e0052beb7 100644 --- a/dlls/rpcrt4/rpc_message.c +++ b/dlls/rpcrt4/rpc_message.c @@ -869,14 +869,14 @@ RPC_STATUS RPCRT4_Receive(RpcConnection *Connection, RpcPktHdr **Header, goto fail; } - if ((CurrentHeader->common.flags & RPC_FLG_FIRST) != first_flag) { + if (CurrentHeader->common.auth_len != auth_length) { WARN("auth_len header field changed from %ld to %d\n", - auth_length, (*Header)->common.auth_len); + auth_length, CurrentHeader->common.auth_len); status = RPC_S_PROTOCOL_ERROR; goto fail; } - if (((*Header)->common.flags & RPC_FLG_FIRST) != first_flag) { + if ((CurrentHeader->common.flags & RPC_FLG_FIRST) != first_flag) { TRACE("invalid packet flags\n"); status = RPC_S_PROTOCOL_ERROR; goto fail;