From: Wayne Davison Date: Mon, 6 Mar 2006 18:22:26 +0000 (+0000) Subject: Call base4_encode() with "1" for its new "pad" arg so that the X-Git-Tag: v2.6.7~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6854bf69a826aad2129272f2504a5be789a0912b;p=thirdparty%2Frsync.git Call base4_encode() with "1" for its new "pad" arg so that the Proxy-Authorization header is properly padded with trailing '=' chars. --- 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';