From a693a53e2302fe9cc60c1b5d2bf59c42032b20a3 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 31 Dec 2019 15:09:20 -0800 Subject: fixes #1081 Use after free possible in stats fixes #1080 Desire better way to access statistics for NNG objects We've also added a test that uses some of this, in order to verify that the req protocol rejects invalid peers. --- src/supplemental/util/platform.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/supplemental/util') diff --git a/src/supplemental/util/platform.c b/src/supplemental/util/platform.c index 138e8b0b..468582bd 100644 --- a/src/supplemental/util/platform.c +++ b/src/supplemental/util/platform.c @@ -155,5 +155,6 @@ nng_cv_wake1(nng_cv *cv) uint32_t nng_random(void) { + (void) nni_init(); return (nni_random()); } -- cgit v1.2.3-70-g09d2