summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
Diffstat (limited to 'mpi')
-rw-r--r--mpi/ChangeLog4
-rw-r--r--mpi/mpicoder.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/mpi/ChangeLog b/mpi/ChangeLog
index 2d2ec8bdb..9465aa513 100644
--- a/mpi/ChangeLog
+++ b/mpi/ChangeLog
@@ -1,3 +1,7 @@
+Mon Jan 24 22:24:38 CET 2000 Werner Koch <wk@gnupg.de>
+
+ * mpicoder.c (gcry_mpi_aprint): Now really returns the length.
+
Mon Jan 24 13:04:28 CET 2000 Werner Koch <wk@gnupg.de>
* mpiutil.c: Removed all memory debugging code.
diff --git a/mpi/mpicoder.c b/mpi/mpicoder.c
index ca805f28b..bd79aca5d 100644
--- a/mpi/mpicoder.c
+++ b/mpi/mpicoder.c
@@ -608,6 +608,8 @@ gcry_mpi_aprint( enum gcry_mpi_format format, void **buffer, size_t *nbytes,
g10_free(*buffer);
*buffer = NULL;
}
+ else if( nbytes )
+ *nbytes = n;
return rc;
}