2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00
This commit is contained in:
Andreas Gustafsson 2001-01-23 20:45:31 +00:00
parent e90441d922
commit b346ae570d

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: socket.c,v 1.181 2001/01/23 20:42:46 bwelling Exp $ */ /* $Id: socket.c,v 1.182 2001/01/23 20:45:31 gson Exp $ */
#include <config.h> #include <config.h>
@ -1654,7 +1654,7 @@ internal_accept(isc_task_t *me, isc_event_t *ev) {
addrlen = sizeof dev->newsocket->address.type; addrlen = sizeof dev->newsocket->address.type;
fd = accept(sock->fd, &dev->newsocket->address.type.sa, fd = accept(sock->fd, &dev->newsocket->address.type.sa,
(void *)&addrlen); (void *)&addrlen);
INSIST(sock->pf == dev->newsocket->address.type.sa.sa_family); INSIST(dev->newsocket->address.type.sa.sa_family == sock->pf);
dev->newsocket->address.length = addrlen; dev->newsocket->address.length = addrlen;
dev->newsocket->pf = sock->pf; dev->newsocket->pf = sock->pf;
if (fd < 0) { if (fd < 0) {