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) { ...@@ -1379,6 +1379,10 @@ int start_listen(event_base *evbase, Sessions *sessions, const Config *config) {
close(fd); close(fd);
} }
freeaddrinfo(res); freeaddrinfo(res);
if (listen_handler_store) {
return -1;
}
return 0; return 0;
} }
} // namespace } // 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