rpcrt4: Check for previous association being NULL in RPCRT4_ResolveBinding.

bind->Assoc could be NULL if the binding hasn't been resolved.
This commit is contained in:
Rob Shearman 2008-08-18 21:12:41 +01:00 committed by Alexandre Julliard
parent c5dd3f079c
commit 6ed020d813
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ RPC_STATUS RPCRT4_ResolveBinding(RpcBinding* Binding, LPCSTR Endpoint)
RPCRT4_strfree(Binding->Endpoint);
Binding->Endpoint = RPCRT4_strdupA(Endpoint);
RpcAssoc_Release(Binding->Assoc);
if (Binding->Assoc) RpcAssoc_Release(Binding->Assoc);
Binding->Assoc = NULL;
status = RPCRT4_GetAssociation(Binding->Protseq, Binding->NetworkAddr,
Binding->Endpoint, Binding->NetworkOptions,