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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user