2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Fix a stupid bug in the listener object accept routine.

This commit is contained in:
Ted Lemon
1999-10-06 19:27:21 +00:00
parent d70dcd50c9
commit 9e7cc56a3d

View File

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