On Windows it seems sending to port 0 does nothing and does not error. Presently sendmsg errors with EINVAL. This works around it, by checking if it's port 0 then skipping the data.
-- v10: ntdll: Do not send data to port 0. ws2_32/tests: Check if sending to port 0 succeeds.