mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-22 23:56:01 +00:00
add check to avoid Segmentation fault
This commit is contained in:
@@ -362,6 +362,9 @@ static void manager_recv_cb(EV_P_ ev_io *w, int revents)
|
||||
}
|
||||
|
||||
char *action = get_action(buf, r);
|
||||
if (action == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (strcmp(action, "add") == 0) {
|
||||
struct server *server = get_server(buf, r);
|
||||
|
||||
Reference in New Issue
Block a user