mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01: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;
|
||||
if (!n)
|
||||
n++; /* avoid zero length allocation */
|
||||
p = buffer = force_secure || mpi_is_secure(a) ? m_alloc_secure( *nbytes)
|
||||
: m_alloc( *nbytes );
|
||||
p = buffer = force_secure || mpi_is_secure(a) ? m_alloc_secure(n)
|
||||
: m_alloc(n);
|
||||
|
||||
for(i=a->nlimbs-1; i >= 0; i-- ) {
|
||||
alimb = a->d[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user