gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 113/411: url: use blank credentials when using proxy w/o usernam


From: gnunet
Subject: [gnurl] 113/411: url: use blank credentials when using proxy w/o username and password
Date: Wed, 13 Jan 2021 01:18:48 +0100

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 3532262edd13e191862b55dec546a732f7d79144
Author: Diven Qi <diven.qi@zoom.us>
AuthorDate: Mon Sep 7 17:30:04 2020 +0800

    url: use blank credentials when using proxy w/o username and password
    
    Fixes proxy regression brought in commit ad829b21ae (7.71.0)
    
    Fixed #5911
    Closes #5914
---
 lib/url.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/url.c b/lib/url.c
index b3884572d..af2a1c06d 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2379,8 +2379,10 @@ static CURLcode parse_proxy(struct Curl_easy *data,
 static CURLcode parse_proxy_auth(struct Curl_easy *data,
                                  struct connectdata *conn)
 {
-  char *proxyuser = data->set.str[STRING_PROXYUSERNAME];
-  char *proxypasswd = data->set.str[STRING_PROXYPASSWORD];
+  const char *proxyuser = data->set.str[STRING_PROXYUSERNAME] ?
+    data->set.str[STRING_PROXYUSERNAME] : "";
+  const char *proxypasswd = data->set.str[STRING_PROXYPASSWORD] ?
+    data->set.str[STRING_PROXYPASSWORD] : "";
   CURLcode result = CURLE_OK;
 
   if(proxyuser)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]