Fix addr_len bug which causes recvfrom to fail