]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fixed WIN32 developer (missing ISC_LINK_INIT()
authorFrancis Dupont <fdupont@isc.org>
Sat, 10 Sep 2016 01:31:42 +0000 (03:31 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 10 Sep 2016 01:31:42 +0000 (03:31 +0200)
lib/isc/win32/app.c
lib/isc/win32/condition.c
lib/isc/win32/socket.c

index a014a0d5d11ae186c53b92ab68f30a564052eeec..5a6748019cc1f7e04094ac945afb9d8b24d2a78d 100644 (file)
@@ -224,6 +224,7 @@ isc__app_ctxonrun(isc_appctx_t *ctx0, isc_mem_t *mctx, isc_task_t *task,
                goto unlock;
        }
 
+       ISC_LINK_INIT(event, ev_link);
        ISC_LIST_APPEND(ctx->on_run, event, ev_link);
 
        result = ISC_R_SUCCESS;
index 747978f832dca5f8b8529a575dfc06b3d815f371..696a20c2e179e957b5d7f1a06b981095ca7fedee 100644 (file)
@@ -80,6 +80,7 @@ register_thread(unsigned long thrd, isc_condition_t *gblcond,
        /*
         * The thread is holding the manager lock so this is safe
         */
+       ISC_LINK_INIT(newthread, link);
        ISC_LIST_APPEND(gblcond->threadlist, newthread, link);
        *localcond = newthread;
        return (ISC_R_SUCCESS);
index 1bf9bfe689c9f064b3c867385229864c8edd0c1c..eaef4cb0698ed0198fe9d3357ac1211a322f2e52 100644 (file)
@@ -992,6 +992,7 @@ build_msghdr_send(isc_socket_t *sock, isc_socketevent_t *dev,
 
                memmove(cpbuffer->buf,(dev->region.base + dev->n), write_count);
                cpbuffer->buflen = (unsigned int)write_count;
+               ISC_LINK_INIT(cpbuffer, link);
                ISC_LIST_ENQUEUE(lpo->bufferlist, cpbuffer, link);
                iov[0].buf = cpbuffer->buf;
                iov[0].len = (u_long)write_count;