]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
openpgp: properly print names in oneline output as well
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 28 Dec 2014 09:13:10 +0000 (11:13 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 28 Dec 2014 09:13:10 +0000 (11:13 +0200)
lib/openpgp/output.c

index c355244009177142eddb9fe330cdbbe029ea6871..8ed87f894e05b72bbd901d831ab960848019c09c 100644 (file)
@@ -426,6 +426,9 @@ print_oneline(gnutls_buffer_st * str, gnutls_openpgp_crt_t cert)
                size_t dn_size = 0;
 
                err = gnutls_openpgp_crt_get_name(cert, i, NULL, &dn_size);
+               if (err == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE)
+                       break;
+
                if (err != GNUTLS_E_SHORT_MEMORY_BUFFER) {
                        addf(str, "unknown name (%s), ",
                             gnutls_strerror(err));