aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/crand.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-25 18:12:24 +0100
committerKim Alvefur <zash@zash.se>2017-02-25 18:12:24 +0100
commitc6898e082b841e0f6048b77202cdf6f1733ba3fe (patch)
treeefd98bba6cf9d2d92eed89b300caeb7c29604199 /util-src/crand.c
parent692c412b3a6094f760ffed876199de787914ec11 (diff)
downloadprosody-c6898e082b841e0f6048b77202cdf6f1733ba3fe.tar.gz
prosody-c6898e082b841e0f6048b77202cdf6f1733ba3fe.zip
util.crand: Clarify that lua_error does not return
Diffstat (limited to 'util-src/crand.c')
-rw-r--r--util-src/crand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/crand.c b/util-src/crand.c
index e7caf683..f3fa00ea 100644
--- a/util-src/crand.c
+++ b/util-src/crand.c
@@ -69,7 +69,7 @@ int Lrandom(lua_State *L) {
#elif defined(WITH_OPENSSL)
if(!RAND_status()) {
lua_pushliteral(L, "OpenSSL PRNG not seeded");
- lua_error(L);
+ return lua_error(L);
}
ret = RAND_bytes(buf, len);