From 4557e50575c251a656a968add5aa4e3abfcb53e7 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Tue, 20 Aug 2013 12:53:30 +0200 Subject: [PATCH] rpcrt4: Accept NULL server principal name in RpcBindingSetAuthInfoExA. --- dlls/rpcrt4/rpc_binding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c index 8152f874baa..e575e658786 100644 --- a/dlls/rpcrt4/rpc_binding.c +++ b/dlls/rpcrt4/rpc_binding.c @@ -1729,7 +1729,7 @@ RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, if (r == RPC_S_OK) { new_auth_info->server_principal_name = RPCRT4_strdupAtoW((char *)ServerPrincName); - if (new_auth_info->server_principal_name) + if (!ServerPrincName || new_auth_info->server_principal_name) { if (bind->AuthInfo) RpcAuthInfo_Release(bind->AuthInfo); bind->AuthInfo = new_auth_info; -- 2.11.4.GIT