Commit 8e178b2d authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

rpcrt4: Fix a crash in RPCRT4_OpenBinding that can occur if

RPCRT4_CreateConnection fails by checking the return value from the function and returning in this case.
parent 079b6b07
...@@ -255,9 +255,13 @@ RPC_STATUS RPCRT4_OpenBinding(RpcBinding* Binding, RpcConnection** Connection, ...@@ -255,9 +255,13 @@ RPC_STATUS RPCRT4_OpenBinding(RpcBinding* Binding, RpcConnection** Connection,
} }
/* create a new connection */ /* create a new connection */
RPCRT4_CreateConnection(&NewConnection, Binding->server, Binding->Protseq, status = RPCRT4_CreateConnection(&NewConnection, Binding->server,
Binding->NetworkAddr, Binding->Endpoint, NULL, Binding->Protseq, Binding->NetworkAddr,
Binding->AuthInfo, Binding); Binding->Endpoint, NULL, Binding->AuthInfo,
Binding);
if (status != RPC_S_OK)
return status;
status = RPCRT4_OpenClientConnection(NewConnection); status = RPCRT4_OpenClientConnection(NewConnection);
if (status != RPC_S_OK) if (status != RPC_S_OK)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment