summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-01-28 17:09:43 +0100
committerWerner Koch <wk@gnupg.org>1998-01-28 17:09:43 +0100
commit9bf8ce27bcd3a58d522262f23c2ca36bfe0a52b7 (patch)
treeefa4f8e1ccbc5e989942cde55c36220dca2d8fbd /mpi
parentmoved stuff to aclocal.m4 (diff)
downloadgnupg2-9bf8ce27bcd3a58d522262f23c2ca36bfe0a52b7.tar.xz
gnupg2-9bf8ce27bcd3a58d522262f23c2ca36bfe0a52b7.zip
version 0.2.1
Diffstat (limited to 'mpi')
-rw-r--r--mpi/mpi-add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpi/mpi-add.c b/mpi/mpi-add.c
index 70fc31208..dbea7ac38 100644
--- a/mpi/mpi-add.c
+++ b/mpi/mpi-add.c
@@ -216,11 +216,11 @@ mpi_sub_ui(MPI w, MPI u, unsigned long v )
void
mpi_sub(MPI w, MPI u, MPI v)
{
- if( 1 || w == v ) {
+ if( w == v ) {
MPI vv = mpi_copy(v);
vv->sign = !vv->sign;
mpi_add( w, u, vv );
- m_free(vv);
+ mpi_free(vv);
}
else {
/* fixme: this is not thread-save (we temp. modify v) */