Rob Shearman : rpcrt4: Check the return value of RPCRT4_ClientAuthorize in RPCRT4_Send.
Alexandre Julliard
julliard at winehq.org
Wed Jan 23 14:36:47 CST 2008
Module: wine
Branch: master
Commit: 7277113af398170073d50170c3d2971e02a95ed6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7277113af398170073d50170c3d2971e02a95ed6
Author: Rob Shearman <rob at codeweavers.com>
Date: Wed Jan 23 16:33:03 2008 +0000
rpcrt4: Check the return value of RPCRT4_ClientAuthorize in RPCRT4_Send.
---
dlls/rpcrt4/rpc_message.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/rpcrt4/rpc_message.c b/dlls/rpcrt4/rpc_message.c
index a720199..de6f97d 100644
--- a/dlls/rpcrt4/rpc_message.c
+++ b/dlls/rpcrt4/rpc_message.c
@@ -676,9 +676,12 @@ RPC_STATUS RPCRT4_Send(RpcConnection *Connection, RpcPktHdr *Header,
}
/* tack on a negotiate packet */
- RPCRT4_ClientAuthorize(Connection, NULL, &out);
- r = RPCRT4_SendAuth(Connection, Header, Buffer, BufferLength, out.pvBuffer, out.cbBuffer);
- HeapFree(GetProcessHeap(), 0, out.pvBuffer);
+ r = RPCRT4_ClientAuthorize(Connection, NULL, &out);
+ if (r == RPC_S_OK)
+ {
+ r = RPCRT4_SendAuth(Connection, Header, Buffer, BufferLength, out.pvBuffer, out.cbBuffer);
+ HeapFree(GetProcessHeap(), 0, out.pvBuffer);
+ }
return r;
}
More information about the wine-cvs
mailing list