projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util-src/*.c: Per convention call luaL_error() as argument to return
[prosody.git]
/
util-src
/
hashes.c
diff --git
a/util-src/hashes.c
b/util-src/hashes.c
index b027423ad000215cb7387a57c412d6310518c14b..a58a424d31a29f0e74b265db7391780e6422b07a 100644
(file)
--- 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);