shrpx_worker_process: worker_process_event_loop: Fix FD test.

This fixes a crash in nghttpx when running on IPv6 only.
This commit is contained in:
Vernon Tang 2016-01-12 17:38:17 +00:00
parent 15ea11d5db
commit 6fddefe252
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ int worker_process_event_loop(WorkerProcessConfig *wpconf) {
conn_handler.set_acceptor6(
make_unique<AcceptHandler>(wpconf->server_fd6, &conn_handler));
}
if (wpconf->server_fd != 1) {
if (wpconf->server_fd != -1) {
conn_handler.set_acceptor(
make_unique<AcceptHandler>(wpconf->server_fd, &conn_handler));
}