aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_cryptobox.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-08 13:04:09 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-08 13:04:24 +0000
commite0e15851ef02287b01b1d79244dd0855c7ce8c42 (patch)
treebb0f474d1549c48a7899b6a6ff7b7e397344c5f8 /src/lua/lua_cryptobox.c
parentd76b69b5fd1e529fe9ab57c2dc3d76c0de957098 (diff)
downloadrspamd-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.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 {