From: Ted Lemon Date: Wed, 6 Oct 1999 19:27:21 +0000 (+0000) Subject: Fix a stupid bug in the listener object accept routine. X-Git-Tag: BCTEL_SPECIAL_19991124~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e7cc56a3d9209b7a5517a9bf6f59275a6b109b5;p=thirdparty%2Fdhcp.git Fix a stupid bug in the listener object accept routine. --- diff --git a/omapip/listener.c b/omapip/listener.c index f415386bb..b83cbdd2d 100644 --- a/omapip/listener.c +++ b/omapip/listener.c @@ -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)