mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-18 12:02:19 -04:00
Fixed a size check in the new code.
This commit is contained in:
1 parent
823edc686f
commit
173f5bf8cf
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user