unix: fix zero-length recv buffer

When we discard a UDP packet, set buf to NULL / 0.