mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-13 22:21:09 +02:00
Oops. Fixed last fix. The diffstat tool is really useful.
This commit is contained in:
parent
42230d3783
commit
b84a50deb8
@ -339,8 +339,8 @@ do_get_buffer( MPI a, unsigned *nbytes, int *sign, int force_secure )
|
|||||||
*nbytes = n = a->nlimbs * BYTES_PER_MPI_LIMB;
|
*nbytes = n = a->nlimbs * BYTES_PER_MPI_LIMB;
|
||||||
if (!n)
|
if (!n)
|
||||||
n++; /* avoid zero length allocation */
|
n++; /* avoid zero length allocation */
|
||||||
p = buffer = force_secure || mpi_is_secure(a) ? m_alloc_secure( *nbytes)
|
p = buffer = force_secure || mpi_is_secure(a) ? m_alloc_secure(n)
|
||||||
: m_alloc( *nbytes );
|
: m_alloc(n);
|
||||||
|
|
||||||
for(i=a->nlimbs-1; i >= 0; i-- ) {
|
for(i=a->nlimbs-1; i >= 0; i-- ) {
|
||||||
alimb = a->d[i];
|
alimb = a->d[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user