Ticket #15921: 0001-fixup-Bug-3455.2.-Allow-RFC1929-authentication-usern.patch

File 0001-fixup-Bug-3455.2.-Allow-RFC1929-authentication-usern.patch, 1.5 KB (added by boklm, 4 years ago)
  • netwerk/base/src/nsSocketTransport2.cpp

    From 256228f237070416ba3ae6f424522c97c9f1a9c5 Mon Sep 17 00:00:00 2001
    From: Nicolas Vigier <boklm@torproject.org>
    Date: Mon, 4 May 2015 16:55:15 +0200
    Subject: [PATCH 1/2] fixup! Bug #3455.2. Allow RFC1929 authentication
     (username/password) to SOCKS servers.
    
    Remove unused variables proxyHost and proxyPort to fix
    unused-but-set-variable build errors.
    ---
     netwerk/base/src/nsSocketTransport2.cpp | 4 ----
     1 file changed, 4 deletions(-)
    
    diff --git a/netwerk/base/src/nsSocketTransport2.cpp b/netwerk/base/src/nsSocketTransport2.cpp
    index baa14da8cd95..658f2e0444fc 100644
    a b nsSocketTransport::BuildSocket(PRFileDesc *&fd, bool &proxyTransparent, bool &us 
    10801080
    10811081        const char *host       = mHost.get();
    10821082        int32_t     port       = (int32_t) mPort;
    1083         const char *proxyHost  = mProxyHost.IsEmpty() ? nullptr : mProxyHost.get();
    1084         int32_t     proxyPort  = (int32_t) mProxyPort;
    10851083        uint32_t    proxyFlags = 0;
    10861084        nsCOMPtr<nsIProxyInfo> proxyInfo = mProxyInfo;
    10871085
    nsSocketTransport::BuildSocket(PRFileDesc *&fd, bool &proxyTransparent, bool &us 
    11541152                // since socks is transparent, any layers above
    11551153                // it do not have to worry about proxy stuff
    11561154                proxyInfo = nullptr;
    1157                 proxyHost = nullptr;
    1158                 proxyPort = -1;
    11591155                proxyTransparent = true;
    11601156            }
    11611157        }