mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
set connected and bound when the connect completes
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: socket.c,v 1.146 2000/06/26 22:59:22 gson Exp $ */
|
/* $Id: socket.c,v 1.147 2000/07/10 19:40:06 explorer Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -2877,8 +2877,11 @@ internal_connect(isc_task_t *me, isc_event_t *ev) {
|
|||||||
"internal_connect: connect() %s",
|
"internal_connect: connect() %s",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
}
|
}
|
||||||
} else
|
} else {
|
||||||
dev->result = ISC_R_SUCCESS;
|
dev->result = ISC_R_SUCCESS;
|
||||||
|
sock->connected = 1;
|
||||||
|
sock->bound = 1;
|
||||||
|
}
|
||||||
|
|
||||||
sock->connect_ev = NULL;
|
sock->connect_ev = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user