[PATCH openEuler-5.10 024/102] mpi: Fix length check in mpi_key_length()