Hi Roman, This commit should fix it. It now has a unit test too so that we don't hit this issue again. Thanks for reporting it in such detail. https://git.zx2c4.com/WireGuard/commit/?id=a88a067d5477f877003d3703bb3b95cb4e94bc46 Let me know if that fixes it on your end. Jason