Commit 9e7cc56a authored by Ted Lemon's avatar Ted Lemon

Fix a stupid bug in the listener object accept routine.

parent d70dcd50
......@@ -140,7 +140,7 @@ isc_result_t omapi_accept (omapi_object_t *h)
accept (listener -> socket,
((struct sockaddr *)
&(obj -> remote_addr)), &len);
if (!obj -> socket) {
if (obj -> socket < 0) {
omapi_object_dereference ((omapi_object_t **)&obj,
"omapi_accept");
if (errno == EMFILE || errno == ENFILE || errno == ENOBUFS)
......
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