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:
parent
c5dd3f079c
commit
6ed020d813
|
@ -213,7 +213,7 @@ RPC_STATUS RPCRT4_ResolveBinding(RpcBinding* Binding, LPCSTR Endpoint)
|
||||||
RPCRT4_strfree(Binding->Endpoint);
|
RPCRT4_strfree(Binding->Endpoint);
|
||||||
Binding->Endpoint = RPCRT4_strdupA(Endpoint);
|
Binding->Endpoint = RPCRT4_strdupA(Endpoint);
|
||||||
|
|
||||||
RpcAssoc_Release(Binding->Assoc);
|
if (Binding->Assoc) RpcAssoc_Release(Binding->Assoc);
|
||||||
Binding->Assoc = NULL;
|
Binding->Assoc = NULL;
|
||||||
status = RPCRT4_GetAssociation(Binding->Protseq, Binding->NetworkAddr,
|
status = RPCRT4_GetAssociation(Binding->Protseq, Binding->NetworkAddr,
|
||||||
Binding->Endpoint, Binding->NetworkOptions,
|
Binding->Endpoint, Binding->NetworkOptions,
|
||||||
|
|
Loading…
Reference in New Issue