Fixes the bug that was introduced in b1ae07ca82a8ffd1647636c4860cd3895c06b0f6 where the wrong datagram size was used.