From: Vsevolod Stakhov Date: Wed, 8 Feb 2017 13:04:09 +0000 (+0000) Subject: [Minor] Fix size of binary hash output X-Git-Tag: 1.5.0~156 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e0e15851ef02287b01b1d79244dd0855c7ce8c42;p=rspamd.git [Minor] Fix size of binary hash output --- 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 {