mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-25 18:23:42 +00:00
properly terminate string which recvfrom does not do
This commit is contained in:
@@ -614,6 +614,9 @@ manager_recv_cb(EV_P_ ev_io *w, int revents)
|
||||
return;
|
||||
}
|
||||
|
||||
// properly terminate string which recvfrom does not do
|
||||
buf[r] = '\0';
|
||||
|
||||
char *action = get_action(buf, r);
|
||||
if (action == NULL) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user