aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_cryptobox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_cryptobox.c')
-rw-r--r--src/lua/lua_cryptobox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_cryptobox.c b/src/lua/lua_cryptobox.c
index 2bd857a67..5e8cec08c 100644
--- a/src/lua/lua_cryptobox.c
+++ b/src/lua/lua_cryptobox.c
@@ -1126,7 +1126,7 @@ lua_cryptobox_hash_bin (lua_State *L)
rspamd_cryptobox_hash_final (h->h, out);
}
- lua_pushlstring (L, out, sizeof (out));
+ lua_pushlstring (L, out, dlen);
h->is_finished = TRUE;
}
else {