| commit | 8030b28ff86550d486840266c21a483e46b96eb0 | [log] [tgz] |
|---|---|---|
| author | Wayne Davison <wayned@samba.org> | Tue Mar 07 08:46:29 2006 +0000 |
| committer | Wayne Davison <wayned@samba.org> | Tue Mar 07 08:46:29 2006 +0000 |
| tree | 59799494e9c4711dcc06bc20f9637e416584289d | |
| parent | 1c598b1db816e215c6e1a23b218afb8820c21db0 [diff] [blame] |
Make extra sure that authbuf can't overflow.
diff --git a/socket.c b/socket.c index c850cd3..8a96061 100644 --- a/socket.c +++ b/socket.c
@@ -58,7 +58,7 @@ 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;