From: Werner Koch Date: Wed, 29 Aug 2001 10:46:49 +0000 (+0000) Subject: Fixed long standing listing bug. X-Git-Tag: gpgme-1.2.0@1385~1310 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ac2b2e5caffb989dedbb9f36cb75e27a2876a096;p=gpgme.git Fixed long standing listing bug. --- diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 5dc5dfe..fedd4b1 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,10 @@ +2001-08-29 Werner Koch + + * 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 * gpgme.c, gpgme.h (gpgme_get_op_info): New. diff --git a/trunk/gpgme/keylist.c b/trunk/gpgme/keylist.c index c95f943..11bbf5d 100644 --- a/trunk/gpgme/keylist.c +++ b/trunk/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++;