aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/util
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2019-12-31 15:09:20 -0800
committerGarrett D'Amore <garrett@damore.org>2020-01-01 08:47:06 -0800
commita693a53e2302fe9cc60c1b5d2bf59c42032b20a3 (patch)
treee98ba805ea9adc2e5ee3e33f7dea1c32584d5c63 /src/supplemental/util
parent0ab3403ef9407db4604cbb451c42a179ab807342 (diff)
downloadnng-a693a53e2302fe9cc60c1b5d2bf59c42032b20a3.tar.gz
nng-a693a53e2302fe9cc60c1b5d2bf59c42032b20a3.tar.bz2
nng-a693a53e2302fe9cc60c1b5d2bf59c42032b20a3.zip
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.
Diffstat (limited to 'src/supplemental/util')
-rw-r--r--src/supplemental/util/platform.c1
1 files changed, 1 insertions, 0 deletions
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());
}