mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +08:00
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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user