]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use accept_cb field for the accept callback
authorEvan Hunt <each@isc.org>
Sun, 7 Jun 2020 23:19:09 +0000 (16:19 -0700)
committerWitold Kręcicki <wpk@isc.org>
Thu, 18 Jun 2020 08:03:44 +0000 (10:03 +0200)
lib/isc/netmgr/tcp.c

index a6960b99b18fe850e25b8322d4af8222eb7288dc..d879fceeafb2fb6eaf7a020fe6b905726a495086 100644 (file)
@@ -183,8 +183,8 @@ isc_nm_listentcp(isc_nm_t *mgr, isc_nmiface_t *iface, isc_nm_cb_t cb,
 
        nsock = isc_mem_get(mgr->mctx, sizeof(*nsock));
        isc__nmsocket_init(nsock, mgr, isc_nm_tcplistener, iface);
-       nsock->rcb.accept = cb;
-       nsock->rcbarg = cbarg;
+       nsock->accept_cb.accept = cb;
+       nsock->accept_cbarg = cbarg;
        nsock->extrahandlesize = extrahandlesize;
        nsock->backlog = backlog;
        nsock->result = ISC_R_SUCCESS;
@@ -396,9 +396,9 @@ isc__nm_async_tcpchildaccept(isc__networker_t *worker, isc__netievent_t *ev0) {
 
        handle = isc__nmhandle_get(csock, NULL, &local);
 
-       INSIST(ssock->rcb.accept != NULL);
+       INSIST(ssock->accept_cb.accept != NULL);
        csock->read_timeout = ssock->mgr->init;
-       ssock->rcb.accept(handle, ISC_R_SUCCESS, ssock->rcbarg);
+       ssock->accept_cb.accept(handle, ISC_R_SUCCESS, ssock->accept_cbarg);
 
        /*
         * csock is now attached to the handle.