net/i40e: fix out-of-bounds access