util-src/*.c: Per convention call luaL_error() as argument to return
[prosody.git] / util-src / hashes.c
index b027423ad000215cb7387a57c412d6310518c14b..a58a424d31a29f0e74b265db7391780e6422b07a 100644 (file)
@@ -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);