Hans Leidekker : rpcrt4: Don' t try to decode the authorization value in the first leg.

Alexandre Julliard julliard at winehq.org
Wed Sep 11 16:01:45 CDT 2013


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Sep 11 13:49:40 2013 +0200

rpcrt4: Don't try to decode the authorization value in the first leg.

---

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

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index d89e5ad..e8bdd49 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -2653,7 +2653,7 @@ static RPC_STATUS do_authorization(HINTERNET request, SEC_WCHAR *servername,
         in_desc.pBuffers  = ∈
 
         p = auth_value + scheme_len;
-        if (*p == ' ')
+        if (!first && *p == ' ')
         {
             int len = strlenW(++p);
             in.cbBuffer = decode_base64(p, len, NULL);




More information about the wine-cvs mailing list