Rob Shearman : rpcrt4: Correctly handle the failure of RPCRT4_SecurePacket in RPCRT4_Receive.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 12 07:50:34 CDT 2007


Module: wine
Branch: master
Commit: e0e27e4dfb7809db7171fd84607cf1a023945f59
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e0e27e4dfb7809db7171fd84607cf1a023945f59

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Sep 11 10:31:54 2007 +0100

rpcrt4: Correctly handle the failure of RPCRT4_SecurePacket in RPCRT4_Receive.

---

 dlls/rpcrt4/rpc_message.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/rpc_message.c b/dlls/rpcrt4/rpc_message.c
index 37839f7..e43dd00 100644
--- a/dlls/rpcrt4/rpc_message.c
+++ b/dlls/rpcrt4/rpc_message.c
@@ -828,12 +828,15 @@ RPC_STATUS RPCRT4_Receive(RpcConnection *Connection, RpcPktHdr **Header,
       if ((common_hdr.ptype != PKT_BIND) &&
           (common_hdr.ptype != PKT_BIND_ACK) &&
           (common_hdr.ptype != PKT_AUTH3))
+      {
         status = RPCRT4_SecurePacket(Connection, SECURE_PACKET_RECEIVE,
             *Header, hdr_length,
             (unsigned char *)pMsg->Buffer + buffer_length, data_length,
             (RpcAuthVerifier *)auth_data,
             (unsigned char *)auth_data + sizeof(RpcAuthVerifier),
             header_auth_len - sizeof(RpcAuthVerifier));
+        if (status != RPC_S_OK) goto fail;
+      }
     }
 
     buffer_length += data_length;




More information about the wine-cvs mailing list