diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-05-22 13:33:22 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-05-22 13:33:22 +0200 |
commit | 9375ae2c131df748929275d58e18c9792a55a403 (patch) | |
tree | f465cf8a37ec73e091c878fcc36366387dcabdf0 | |
parent | 5c5ec8517a8f431dc8d1d4cd92c76573d8938e00 (diff) | |
download | gnutls-9375ae2c131df748929275d58e18c9792a55a403.tar.gz |
check for correct error codes in print_extensions().
-rw-r--r-- | lib/x509/output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/x509/output.c b/lib/x509/output.c index f88b1a802d..af244c6621 100644 --- a/lib/x509/output.c +++ b/lib/x509/output.c @@ -1246,7 +1246,7 @@ print_extensions(gnutls_buffer_st * str, const char *prefix, int type, return; } - if (err < 0) { + if (err < 0 && err != GNUTLS_E_SHORT_MEMORY_BUFFER) { addf(str, "error: get_extension_data: %s\n", gnutls_strerror(err)); @@ -1270,7 +1270,7 @@ print_extensions(gnutls_buffer_st * str, const char *prefix, int type, gnutls_x509_crq_get_extension_data (cert.crq, i, buffer, &extlen); - if (err < 0) { + if (err < 0 && err) { gnutls_free(buffer); addf(str, "error: get_extension_data2: %s\n", @@ -2218,7 +2218,7 @@ print_crl(gnutls_buffer_st * str, gnutls_x509_crl_t crl, int notsigned) i, NULL, &extlen); - if (err < 0) { + if (err < 0 && err != GNUTLS_E_SHORT_MEMORY_BUFFER) { addf(str, "error: get_extension_data: %s\n", gnutls_strerror(err)); |