]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix size of binary hash output
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 8 Feb 2017 13:04:09 +0000 (13:04 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 8 Feb 2017 13:04:24 +0000 (13:04 +0000)
src/lua/lua_cryptobox.c

index 2bd857a6773675e49641759a68a11fa154d62bdc..5e8cec08cd7b55dc323aabaccb39b95cd101c7cb 100644 (file)
@@ -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 {