Diff

util-src/crand.c @ 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
parent 7915:e3d3ebd417f4
child 7931:b619b85e01aa
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);