diff --git a/lib/freebl/mpi/mpi.c b/lib/freebl/mpi/mpi.c index ae404019d8..c370cfc12c 100644 --- a/lib/freebl/mpi/mpi.c +++ b/lib/freebl/mpi/mpi.c @@ -2978,8 +2978,7 @@ s_mp_rshd(mp_int *mp, mp_size p) MP_USED(mp) -= p; /* Fill the top digits with zeroes */ - while (p-- > 0) - *dst++ = 0; + s_mp_setz(MP_DIGITS(mp) + MP_USED(mp), p); } /* end s_mp_rshd() */