rpcrt4: Accept NULL server principal name in RpcBindingSetAuthInfoExA.

This commit is contained in:
Hans Leidekker 2013-08-20 12:53:30 +02:00 committed by Alexandre Julliard
parent c75726ba76
commit 4557e50575
1 changed files with 1 additions and 1 deletions

View File

@ -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;