summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-03-06 18:22:26 +0000
committerWayne Davison <wayned@samba.org>2006-03-06 18:22:26 +0000
commit6854bf69a826aad2129272f2504a5be789a0912b (patch)
treef33544f9696c874e12e16f9a923e7e5965bc8c05 /socket.c
parent293def601d3267a361120cf85bfd902e7b2c3736 (diff)
downloadrsync-6854bf69a826aad2129272f2504a5be789a0912b.tar.gz
rsync-6854bf69a826aad2129272f2504a5be789a0912b.tar.bz2
rsync-6854bf69a826aad2129272f2504a5be789a0912b.zip
Call base4_encode() with "1" for its new "pad" arg so that the
Proxy-Authorization header is properly padded with trailing '=' chars.
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 47f7ce16..c850cd36 100644
--- a/socket.c
+++ b/socket.c
@@ -64,7 +64,7 @@ static int establish_proxy_connection(int fd, char *host, int port,
return -1;
}
- base64_encode(buffer, len, authbuf);
+ base64_encode(buffer, len, authbuf, 1);
authhdr = "\r\nProxy-Authorization: Basic ";
} else {
*authbuf = '\0';