diff options
Diffstat (limited to 'lib/errors.h')
-rw-r--r-- | lib/errors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/errors.h b/lib/errors.h index 7412a291f5..6ffc4172eb 100644 --- a/lib/errors.h +++ b/lib/errors.h @@ -61,7 +61,7 @@ void _gnutls_mpi_log(const char *prefix, bigint_t a); #define _gnutls_cert_log(str, cert) \ do { \ - if (unlikely(_gnutls_log_level >= 3)) { \ + if (unlikely(_gnutls_log_level >= 3 && cert != NULL)) { \ gnutls_datum_t _cl_out; int _cl_ret; \ _cl_ret = gnutls_x509_crt_print(cert, GNUTLS_CRT_PRINT_ONELINE, &_cl_out); \ if (_cl_ret >= 0) { \ |