Fixed a size check in the new code.

This commit is contained in:
Wayne Davison committed 2004-01-03 09:44:20 +00:00
1 parent 823edc686f
commit 173f5bf8cf
1 file changed
+1 -1
+1 -1
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;