Changeset

7918:12e5a54907b6

util.crand: Clarify that lua_error does not return
author Kim Alvefur <zash@zash.se>
date Sat, 25 Feb 2017 18:12:24 +0100
parents 7917:1ea3a8dc7dd5
children 7919:251bf68922d9
files util-src/crand.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/crand.c	Sat Feb 25 18:08:30 2017 +0100
+++ b/util-src/crand.c	Sat Feb 25 18:12:24 2017 +0100
@@ -69,7 +69,7 @@
 #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);