From 2da5acde4acaf523a89d012b1bb87a4e5862e7c5 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 5 Jan 2018 15:12:47 -0800 Subject: Fix possible use-after-free reaping things using random. --- src/core/init.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/core/init.c') diff --git a/src/core/init.c b/src/core/init.c index cb6dbeee..c1b7bbac 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -1,7 +1,6 @@ // -// Copyright 2017 Garrett D'Amore -// Copyright 2017 Capitar IT Group BV -// Copyright 2017 Staysail Systems, Inc. +// Copyright 2018 Staysail Systems, Inc. +// Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -74,8 +73,8 @@ nni_fini(void) nni_pipe_sys_fini(); nni_ep_sys_fini(); nni_sock_sys_fini(); - nni_random_sys_fini(); nni_reap_sys_fini(); // must be before timer and aio (expire) + nni_random_sys_fini(); nni_aio_sys_fini(); nni_timer_sys_fini(); nni_taskq_sys_fini(); -- cgit v1.2.3-70-g09d2