Browse Source

Merge pull request #500 from aipsel/fix

add check to avoid Segmentation fault
pull/502/head
Max Lv 8 years ago
parent
commit
c77c1c50ca
1 changed files with 3 additions and 0 deletions
  1. 3
      src/manager.c

3
src/manager.c

@ -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);

Loading…
Cancel
Save