aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/hashes.c
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2015-04-03 20:30:14 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2015-04-03 20:30:14 +0200
commit5a53fb4df8f81b02712a18c911a7c5db12a584c3 (patch)
tree3f856b706c3324b4f94e498231ac5b75d2d15657 /util-src/hashes.c
parent1930dee18906f9fff6cf667b6593ce53eb639e8d (diff)
downloadprosody-5a53fb4df8f81b02712a18c911a7c5db12a584c3.tar.gz
prosody-5a53fb4df8f81b02712a18c911a7c5db12a584c3.zip
util-src/*.c: Per convention call luaL_error() as argument to return
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);