aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2001-08-29 10:46:49 +0000
committerWerner Koch <[email protected]>2001-08-29 10:46:49 +0000
commit5ad992b6aa0faa7ec1e7a65b84dc0aa321b381f6 (patch)
treeca4e501aa0246587ef2f37bf74cb06d7768f212d
parentTypo fixes and new gpgme_get_op_info (diff)
downloadgpgme-5ad992b6aa0faa7ec1e7a65b84dc0aa321b381f6.tar.gz
gpgme-5ad992b6aa0faa7ec1e7a65b84dc0aa321b381f6.zip
Fixed long standing listing bug.
Diffstat (limited to '')
-rw-r--r--gpgme/ChangeLog7
-rw-r--r--gpgme/keylist.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog
index 5dc5dfe4..fedd4b1f 100644
--- a/gpgme/ChangeLog
+++ b/gpgme/ChangeLog
@@ -1,3 +1,10 @@
+2001-08-29 Werner Koch <[email protected]>
+
+ * keylist.c (keylist_colon_handler): Do a finish key if we receive
+ an EOF here. This is probably the reason for a lot of bugs
+ related to keylisting. It is so obvious. Kudos to Enno Cramer
+ for pointing that out.
+
2001-08-28 Werner Koch <[email protected]>
* gpgme.c, gpgme.h (gpgme_get_op_info): New.
diff --git a/gpgme/keylist.c b/gpgme/keylist.c
index c95f943a..11bbf5d9 100644
--- a/gpgme/keylist.c
+++ b/gpgme/keylist.c
@@ -156,8 +156,11 @@ keylist_colon_handler ( GpgmeCtx ctx, char *line )
if ( ctx->out_of_core )
return;
- if (!line)
- return; /* EOF */
+ if (!line) { /* EOF */
+ if (ctx->tmp_key)
+ finish_key (ctx);
+ return;
+ }
for (p = line; p; p = pend) {
field++;