From e0e15851ef02287b01b1d79244dd0855c7ce8c42 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 8 Feb 2017 13:04:09 +0000 Subject: [PATCH] [Minor] Fix size of binary hash output --- src/lua/lua_cryptobox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/lua_cryptobox.c b/src/lua/lua_cryptobox.c index 2bd857a677..5e8cec08cd 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 { -- 2.47.3