mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
bug fixes
This commit is contained in:
parent
248f46c5d3
commit
5911e300ff
12 changed files with 328 additions and 202 deletions
|
@ -64,6 +64,7 @@ mpi_alloc( unsigned nlimbs )
|
|||
a->nlimbs = 0;
|
||||
a->sign = 0;
|
||||
a->flags = 0;
|
||||
a->nbits = 0;
|
||||
return a;
|
||||
}
|
||||
|
||||
|
@ -96,6 +97,7 @@ mpi_alloc_secure( unsigned nlimbs )
|
|||
a->flags |= 1;
|
||||
a->nlimbs = 0;
|
||||
a->sign = 0;
|
||||
a->nbits = 0;
|
||||
return a;
|
||||
}
|
||||
|
||||
|
@ -175,6 +177,7 @@ void
|
|||
mpi_clear( MPI a )
|
||||
{
|
||||
a->nlimbs = 0;
|
||||
a->nbits = 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue