nghttpd: Fail if listen failed

This commit is contained in:
Tatsuhiro Tsujikawa 2014-12-15 23:17:50 +09:00
parent 9a35dbc4ab
commit 403ece66e3
1 changed files with 4 additions and 0 deletions

View File

@ -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