diff options
author | Kim Alvefur <zash@zash.se> | 2017-02-25 18:12:24 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-02-25 18:12:24 +0100 |
commit | 4707d5665df4179e0b02a520ff36ad51a7b9d9be (patch) | |
tree | efd98bba6cf9d2d92eed89b300caeb7c29604199 /util-src/crand.c | |
parent | 8be8bbf789df743f2abd4a8be41183952a0f6375 (diff) | |
download | prosody-4707d5665df4179e0b02a520ff36ad51a7b9d9be.tar.gz prosody-4707d5665df4179e0b02a520ff36ad51a7b9d9be.zip |
util.crand: Clarify that lua_error does not return
Diffstat (limited to 'util-src/crand.c')
-rw-r--r-- | util-src/crand.c | 2 |
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); |