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

Alexandre Julliard julliard at winehq.org
Thu Mar 26 11:05:48 CDT 2009


Module: wine
Branch: master
Commit: 524a99a2da5f2d09689c7ddbacbb408a20d78cae
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=524a99a2da5f2d09689c7ddbacbb408a20d78cae

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Thu Mar 26 13:35:57 2009 +0000

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 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index b01228b..39908bc 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];




More information about the wine-cvs mailing list