aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/hashes.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-src/hashes.c')
-rw-r--r--util-src/hashes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/hashes.c b/util-src/hashes.c
index b027423a..a58a424d 100644
--- a/util-src/hashes.c
+++ b/util-src/hashes.c
@@ -170,7 +170,7 @@ static int LscramHi(lua_State* L) {
salt2 = malloc(salt_len + 4);
if(salt2 == NULL) {
- luaL_error(L, "Out of memory in scramHi");
+ return luaL_error(L, "Out of memory in scramHi");
}
memcpy(salt2, salt, salt_len);