Re: [PATCH 2/2] MPI: Fix mpi_powm() when exponent is 0 and the result has no limbs

From: David Howells
Date: Thu Nov 24 2016 - 06:18:06 EST


David Howells <dhowells@xxxxxxxxxx> wrote:

> + if (!rp) {
> + if (mpi_resize(res, 1) < 0)

This is better done with RESIZE_IF_NEEDED().

David