mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Fixed: socks fails on 1-character username or password
This commit is contained in:
1 parent
9bd81a18b9
commit
572a5b3c34
3 files changed
+6
-2
No files matched your search
+1
-1
@@ -156,7 +156,7 @@ int sockgetcharsrv(struct clientparam * param, int timeosec, int timeousec){
|
||||
int sockgetlinebuf(struct clientparam * param, DIRECTION which, unsigned char * buf, int bufsize, int delim, int to){
|
||||
int c;
|
||||
int i=0;
|
||||
if(bufsize<2) return 0;
|
||||
if(bufsize < 1) return 0;
|
||||
c = (which)?sockgetcharsrv(param, to, 0):sockgetcharcli(param, to, 0);
|
||||
if (c == EOF) {
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user