mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 00:13:42 +00:00
Fix #1123
This commit is contained in:
+1
-1
@@ -223,7 +223,7 @@ get_action(char *buf, int len)
|
||||
char *action;
|
||||
int pos = 0;
|
||||
|
||||
while (isspace((unsigned char)buf[pos]) && pos < len)
|
||||
while (pos < len && isspace((unsigned char)buf[pos]))
|
||||
pos++;
|
||||
if (pos == len) {
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user