mirror of
https://github.com/logos-storage/nim-libp2p.git
synced 2026-01-02 21:53:11 +00:00
The error in the code was that the `vsizeof(n)` was called with a dummy zeroed variable, instead of the proper size of the buffer. This resulted in an assertion failure when the prefix length needs to be stored in more than 1 byte.