Fixed a size check in the new code.

This commit is contained in:
Wayne Davison
2004-01-03 09:44:20 +00:00
parent 823edc686f
commit 173f5bf8cf

View File

@@ -52,7 +52,7 @@ static int establish_proxy_connection(int fd, char *host, int port,
proxy_user, proxy_pass);
len = strlen(buffer);
if ((len*8 + 5) / 6 - 2 >= (int)sizeof authbuf) {
if ((len*8 + 5) / 6 >= (int)sizeof authbuf) {
rprintf(FERROR,
"authentication information is too long\n");
return -1;