Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c598b1
)
Make extra sure that authbuf can't overflow.
author
Wayne Davison
<wayned@samba.org>
Tue, 7 Mar 2006 08:46:29 +0000
(08:46 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 7 Mar 2006 08:46:29 +0000
(08:46 +0000)
socket.c
patch
|
blob
|
blame
|
history
diff --git
a/socket.c
b/socket.c
index
c850cd3
..
8a96061
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-58,7
+58,7
@@
static int establish_proxy_connection(int fd, char *host, int port,
proxy_user, ":", proxy_pass, NULL);
len = strlen(buffer);
- if ((len*8 + 5) / 6 >= (int)sizeof authbuf) {
+ if ((len*8 + 5) / 6 >= (int)sizeof authbuf
- 3
) {
rprintf(FERROR,
"authentication information is too long\n");
return -1;