Commit 524a99a2 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

rpcrt4: Ensure that only the IP/IPv6 address families are considered in…

rpcrt4: Ensure that only the IP/IPv6 address families are considered in rpcrt4_protseq_ncacn_ip_tcp_open_endpoint/rpcrt4_ncacn_ip_tcp_open.
parent a42d4dbf
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment