Commit 403ece66 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpd: Fail if listen failed

parent 9a35dbc4
......@@ -1379,6 +1379,10 @@ int start_listen(event_base *evbase, Sessions *sessions, const Config *config) {
close(fd);
}
freeaddrinfo(res);
if (listen_handler_store) {
return -1;
}
return 0;
}
} // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment