aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/keylist.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpgme/keylist.c')
-rw-r--r--gpgme/keylist.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gpgme/keylist.c b/gpgme/keylist.c
index d3dbbb52..21a6d873 100644
--- a/gpgme/keylist.c
+++ b/gpgme/keylist.c
@@ -404,14 +404,12 @@ keylist_colon_handler (GpgmeCtx ctx, char *line)
case 9: /* ownertrust */
set_ownertrust (key, p);
break;
- case 10: /* not used for gpg due to --fixed-list-mode option
- but gpgsm stores the issuer name */
+ case 10:
+ /* Not used for gpg due to --fixed-list-mode option but
+ GPGSM stores the issuer name. */
if (rectype == RT_CRT || rectype == RT_CRS)
- {
- key->issuer_name = xtrystrdup (p);
- if (!key->issuer_name)
- ctx->error = mk_error (Out_Of_Core);
- }
+ if (_gpgme_decode_c_string (p, &key->issuer_name))
+ ctx->error = mk_error (Out_Of_Core);
break;
case 11: /* signature class */
break;