summaryrefslogtreecommitdiffstats
path: root/usr.sbin/portsnap
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-03-07 19:04:16 +0000
committerume <ume@FreeBSD.org>2006-03-07 19:04:16 +0000
commitcf60b0b3b135b1762f094185cdfa169b323513cd (patch)
tree9f4b31d657c73169fc33de8dfb2b6ff27ef341aa /usr.sbin/portsnap
parent2c3115e88f9fdebe9882492f87faf6a5d28b7760 (diff)
downloadFreeBSD-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
Diffstat (limited to 'usr.sbin/portsnap')
-rw-r--r--usr.sbin/portsnap/phttpget/phttpget.c2
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)) {
OpenPOWER on IntegriCloud