rpcrt4: Print some more informative error messages when getaddrinfo fails.
This commit is contained in:
parent
24b886d916
commit
423e7e3089
|
@ -472,7 +472,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
|
||||||
ret = getaddrinfo(Connection->NetworkAddr, Connection->Endpoint, &hints, &ai);
|
ret = getaddrinfo(Connection->NetworkAddr, Connection->Endpoint, &hints, &ai);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
ERR("getaddrinfo failed with %d\n", ret);
|
ERR("getaddrinfo failed: %s\n", gai_strerror(ret));
|
||||||
return RPC_S_SERVER_UNAVAILABLE;
|
return RPC_S_SERVER_UNAVAILABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -597,7 +597,7 @@ static size_t rpcrt4_ncacn_ip_tcp_get_top_of_tower(unsigned char *tower_data,
|
||||||
ret = getaddrinfo(networkaddr, endpoint, &hints, &ai);
|
ret = getaddrinfo(networkaddr, endpoint, &hints, &ai);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
ERR("getaddrinfo failed with %d\n", ret);
|
ERR("getaddrinfo failed: %s\n", gai_strerror(ret));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue