diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-08 13:04:09 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-08 13:04:24 +0000 |
commit | e0e15851ef02287b01b1d79244dd0855c7ce8c42 (patch) | |
tree | bb0f474d1549c48a7899b6a6ff7b7e397344c5f8 /src/lua/lua_cryptobox.c | |
parent | d76b69b5fd1e529fe9ab57c2dc3d76c0de957098 (diff) | |
download | rspamd-e0e15851ef02287b01b1d79244dd0855c7ce8c42.tar.gz rspamd-e0e15851ef02287b01b1d79244dd0855c7ce8c42.zip |
[Minor] Fix size of binary hash output
Diffstat (limited to 'src/lua/lua_cryptobox.c')
-rw-r--r-- | src/lua/lua_cryptobox.c | 2 |
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 { |