Fix buggy assertion triggered when sendto() runs out of output buffers

This fixes a denial of service vulnerability, when sendto() runs out of buffers.