rpcrt4: Ensure that only the IP/IPv6 address families are considered in rpcrt4_protseq_ncacn_ip_tcp_open_endpoint/rpcrt4_ncacn_ip_tcp_open.

This commit is contained in:
Rob Shearman 2009-03-26 13:35:57 +00:00 committed by Alexandre Julliard
parent a42d4dbfb6
commit 524a99a2da
1 changed files with 12 additions and 0 deletions

View File

@ -822,6 +822,12 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
{
int val;
if (ai_cur->ai_family != AF_INET && ai_cur->ai_family != AF_INET6)
{
TRACE("skipping non-IP/IPv6 address family\n");
continue;
}
if (TRACE_ON(rpc))
{
char host[256];
@ -902,6 +908,12 @@ static RPC_STATUS rpcrt4_protseq_ncacn_ip_tcp_open_endpoint(RpcServerProtseq *pr
socklen_t sa_len;
char service[NI_MAXSERV];
if (ai_cur->ai_family != AF_INET && ai_cur->ai_family != AF_INET6)
{
TRACE("skipping non-IP/IPv6 address family\n");
continue;
}
if (TRACE_ON(rpc))
{
char host[256];