From 524a99a2da5f2d09689c7ddbacbb408a20d78cae Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 26 Mar 2009 13:35:57 +0000 Subject: [PATCH] rpcrt4: Ensure that only the IP/IPv6 address families are considered in rpcrt4_protseq_ncacn_ip_tcp_open_endpoint/rpcrt4_ncacn_ip_tcp_open. --- dlls/rpcrt4/rpc_transport.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c index b01228b43fd..39908bcdf75 100644 --- a/dlls/rpcrt4/rpc_transport.c +++ b/dlls/rpcrt4/rpc_transport.c @@ -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]; -- 2.11.4.GIT