packet: validate address length if non-zero