[2/2] rpcrt4: Don't try to decode the authorization value in the first leg.

Hans Leidekker hans at codeweavers.com
Wed Sep 11 06:49:40 CDT 2013


---
 dlls/rpcrt4/rpc_transport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
1.8.1.5






More information about the wine-patches mailing list