mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-28 17:46:40 -04:00
make_nonblock() errors were reported twice, and one of the instances
used the wrong errno value [RT #640]
This commit is contained in:
parent
e495738a16
commit
90bffb134e
1 changed files with 1 additions and 8 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: socket.c,v 1.179 2001/01/09 21:58:28 bwelling Exp $ */
|
||||
/* $Id: socket.c,v 1.180 2001/01/11 18:57:23 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -1700,13 +1700,6 @@ internal_accept(isc_task_t *me, isc_event_t *ev) {
|
|||
if (fd != -1 && (make_nonblock(fd) != ISC_R_SUCCESS)) {
|
||||
close(fd);
|
||||
fd = -1;
|
||||
|
||||
UNEXPECTED_ERROR(__FILE__, __LINE__,
|
||||
"internal_accept: make_nonblock() %s: %s",
|
||||
isc_msgcat_get(isc_msgcat, ISC_MSGSET_GENERAL,
|
||||
ISC_MSG_FAILED, "failed"),
|
||||
strerror(errno));
|
||||
|
||||
result = ISC_R_UNEXPECTED;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue