Hans Leidekker : rpcrt4: Don't follow HTTP redirects.

Alexandre Julliard julliard at winehq.org
Wed Aug 28 14:03:09 CDT 2013


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Aug 28 13:31:23 2013 +0200

rpcrt4: Don't follow HTTP redirects.

---

 dlls/rpcrt4/rpc_transport.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index 6b808de..b039959 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -2520,7 +2520,8 @@ static RPC_STATUS rpcrt4_ncacn_http_open(RpcConnection* Connection)
              (httpc->common.QOS->qos->AdditionalSecurityInfoType == RPC_C_AUTHN_INFO_TYPE_HTTP) &&
              (httpc->common.QOS->qos->u.HttpCredentials->Flags & RPC_C_HTTP_FLAG_USE_SSL);
 
-    flags = INTERNET_FLAG_KEEP_CONNECTION | INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_NO_CACHE_WRITE;
+    flags = INTERNET_FLAG_KEEP_CONNECTION | INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_NO_CACHE_WRITE |
+            INTERNET_FLAG_NO_AUTO_REDIRECT;
     if (secure) flags |= INTERNET_FLAG_SECURE;
 
     httpc->in_request = HttpOpenRequestW(httpc->session, wszVerbIn, url, NULL, NULL, wszAcceptTypes,




More information about the wine-cvs mailing list