Fixed a size check in the new code.
This commit is contained in:
2
socket.c
2
socket.c
@@ -52,7 +52,7 @@ static int establish_proxy_connection(int fd, char *host, int port,
|
|||||||
proxy_user, proxy_pass);
|
proxy_user, proxy_pass);
|
||||||
len = strlen(buffer);
|
len = strlen(buffer);
|
||||||
|
|
||||||
if ((len*8 + 5) / 6 - 2 >= (int)sizeof authbuf) {
|
if ((len*8 + 5) / 6 >= (int)sizeof authbuf) {
|
||||||
rprintf(FERROR,
|
rprintf(FERROR,
|
||||||
"authentication information is too long\n");
|
"authentication information is too long\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user