]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't reset work_io_instance. It's now "const"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 30 Oct 2018 15:28:28 +0000 (11:28 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 30 Oct 2018 15:46:22 +0000 (11:46 -0400)
src/modules/proto_detail/proto_detail_work.c

index 36bd3f9531d42916e50fd9d5e28f9f43a1564828..51f8dc41f55e5794b8c562504c83dc0c81fc3ff8 100644 (file)
@@ -751,8 +751,6 @@ static int mod_open(fr_listen_t *li)
 
 static int mod_close_internal(proto_detail_work_thread_t *thread)
 {
-       proto_detail_work_t const *inst = thread->inst;
-
        rad_assert(thread->eof);
 
        /*
@@ -762,7 +760,6 @@ static int mod_close_internal(proto_detail_work_thread_t *thread)
         */
        if (thread->file_parent) {
                pthread_mutex_lock(&thread->file_parent->worker_mutex);
-               inst->parent->work_io_instance = NULL;
                if (thread->file_parent->num_workers > 0) thread->file_parent->num_workers--;
                pthread_mutex_unlock(&thread->file_parent->worker_mutex);
        }