Skip to content
Snippets Groups Projects
Commit 93ddc51c authored by Nick Mathewson's avatar Nick Mathewson :game_die: Committed by David Goulet
Browse files

Give a more useful failure messgae when we fail to minherit().

Part of ticket 30686.
parent 24a2352d
No related branches found
No related tags found
No related merge requests found
......@@ -181,7 +181,11 @@ crypto_fast_rng_new_from_seed(const uint8_t *seed)
#else
/* We decided above that noinherit would always do _something_. Assert here
* that we were correct. */
tor_assert(inherit != INHERIT_RES_KEEP);
tor_assertf(inherit != INHERIT_RES_KEEP,
"We failed to create a non-inheritable memory region, even "
"though we believed such a failure to be impossible! This is "
"probably a bug in Tor support for your platform; please report "
"it.");
#endif
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment