[Libreoffice-commits] .: curl/curl-7.26.0_win-proxy.patch

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Jan 22 01:53:43 PST 2013


 curl/curl-7.26.0_win-proxy.patch |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit c37b23e4c29c0f9f442fac0a4d8f731bee6ea5b6
Author: Cédric Bosdonnat <cedric.bosdonnat at free.fr>
Date:   Mon Jan 21 18:32:27 2013 +0100

    curl: fixed crashers in curl patch for system proxy
    
    Change-Id: Ieb8e782eab9c9bde1d2099d8cc32eceef9f00002

diff --git a/curl/curl-7.26.0_win-proxy.patch b/curl/curl-7.26.0_win-proxy.patch
index 222bec4..e3beb40 100644
--- a/curl/curl-7.26.0_win-proxy.patch
+++ b/curl/curl-7.26.0_win-proxy.patch
@@ -52,7 +52,7 @@
  
  #ifndef CURL_DISABLE_HTTP
    /* If proxy was not specified, we check for default proxy environment
-@@ -4138,7 +4158,62 @@ static char *detect_proxy(struct connectdata *conn)
+@@ -4138,7 +4158,63 @@ static char *detect_proxy(struct connectdata *conn)
     * For compatibility, the all-uppercase versions of these variables are
     * checked if the lowercase versions don't exist.
     */
@@ -71,7 +71,7 @@
 +      ieNoProxy = wstrToCstr(ieProxyConfig->lpszProxyBypass);
 +
 +      /* Convert the ieNoProxy into a proper no_proxy value */
-+      if(NULL != no_proxy) {
++      if(NULL != ieNoProxy) {
 +        no_proxy = strdup(ieNoProxy);
 +        pos = strpbrk(no_proxy, "; ");
 +        while(NULL != pos) {
@@ -95,8 +95,9 @@
 +                /* We found HTTP proxy value, then use it */
 +                proxy = strdup( tok + 5 );
 +              }
++              tok = strtok(NULL, ";");
 +            }
-+            while(NULL != strtok(NULL, ";"));
++            while(NULL != tok);
 +          }
 +        }
 +      }
@@ -116,7 +117,7 @@
    char proxy_env[128];
  
    no_proxy=curl_getenv("no_proxy");
-@@ -4189,9 +4264,9 @@ static char *detect_proxy(struct connectdata *conn)
+@@ -4189,9 +4265,9 @@ static char *detect_proxy(struct connectdata *conn)
      }
    } /* if(!check_noproxy(conn->host.name, no_proxy)) - it wasn't specified
         non-proxy */


More information about the Libreoffice-commits mailing list