From: Alan T. DeKok Date: Tue, 30 Oct 2018 15:28:28 +0000 (-0400) Subject: don't reset work_io_instance. It's now "const" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=720caed34463040eaad04e1c228aef907545c5bc;p=thirdparty%2Ffreeradius-server.git don't reset work_io_instance. It's now "const" --- diff --git a/src/modules/proto_detail/proto_detail_work.c b/src/modules/proto_detail/proto_detail_work.c index 36bd3f9531d..51f8dc41f55 100644 --- a/src/modules/proto_detail/proto_detail_work.c +++ b/src/modules/proto_detail/proto_detail_work.c @@ -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); }