diff options
author | ume <ume@FreeBSD.org> | 2006-03-07 19:04:16 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-03-07 19:04:16 +0000 |
commit | cf60b0b3b135b1762f094185cdfa169b323513cd (patch) | |
tree | 9f4b31d657c73169fc33de8dfb2b6ff27ef341aa | |
parent | 2c3115e88f9fdebe9882492f87faf6a5d28b7760 (diff) | |
download | FreeBSD-src-cf60b0b3b135b1762f094185cdfa169b323513cd.zip FreeBSD-src-cf60b0b3b135b1762f094185cdfa169b323513cd.tar.gz |
Correct handling of HTTP_PROXY_AUTH. A password may have `:'.
Approved by: cperciva
MFC after: 2 days
-rw-r--r-- | usr.sbin/portsnap/phttpget/phttpget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/portsnap/phttpget/phttpget.c b/usr.sbin/portsnap/phttpget/phttpget.c index 57ca0d0ab..64d983d 100644 --- a/usr.sbin/portsnap/phttpget/phttpget.c +++ b/usr.sbin/portsnap/phttpget/phttpget.c @@ -152,7 +152,7 @@ readenv(void) /* Obtain username and password */ proxy_auth_user = strsep(&env_HTTP_PROXY_AUTH, ":"); - proxy_auth_pass = strsep(&env_HTTP_PROXY_AUTH, ":"); + proxy_auth_pass = env_HTTP_PROXY_AUTH; } if ((proxy_auth_user != NULL) && (proxy_auth_pass != NULL)) { |