Module: wine Branch: master Commit: 4557e50575c251a656a968add5aa4e3abfcb53e7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4557e50575c251a656a968add5...
Author: Hans Leidekker hans@codeweavers.com Date: Tue Aug 20 12:53:30 2013 +0200
rpcrt4: Accept NULL server principal name in RpcBindingSetAuthInfoExA.
---
dlls/rpcrt4/rpc_binding.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c index 8152f87..e575e65 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;