Browse Source

[angel] fix segfault if no user was specified

personal/stbuehler/wip
Stefan Bühler 12 years ago
parent
commit
2ad699f56e
  1. 3
      src/angel/angel_server.c

3
src/angel/angel_server.c

@ -177,7 +177,8 @@ static void instance_spawn(liInstance *i) {
li_fd_no_block(confd[1]);
i->acon = li_angel_connection_new(i->srv->loop, confd[0], i, instance_angel_call_cb, instance_angel_close_cb);
i->proc = li_proc_new(i->srv, i->ic->cmd, i->ic->env, i->ic->uid, i->ic->gid, i->ic->username->str, i->ic->rlim_core, i->ic->rlim_nofile, instance_spawn_setup, confd);
i->proc = li_proc_new(i->srv, i->ic->cmd, i->ic->env, i->ic->uid, i->ic->gid,
i->ic->username != NULL ? i->ic->username->str : NULL, i->ic->rlim_core, i->ic->rlim_nofile, instance_spawn_setup, confd);
if (!i->proc) return;

Loading…
Cancel
Save