diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2018-03-06 16:23:31 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2018-03-06 21:59:30 +0000 |
commit | bd5b3f3c47654ba803f2a71daa4b739a2af39467 (patch) | |
tree | e9feb45335b175686ce9fc9ba0bf7d67a8cf80d1 /src | |
parent | 12fa0e31a7141100d816dcd6d4eba165fdfa8df7 (diff) |
Testsuite: GnuTLS version of DANE/events testcase
Followon from: c0635b6dfe
Diffstat (limited to 'src')
-rw-r--r-- | src/src/tls-gnu.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c index e0ac6a546..6de0f023a 100644 --- a/src/src/tls-gnu.c +++ b/src/src/tls-gnu.c @@ -1621,7 +1621,7 @@ else (needed for TA but not EE). */ if (usage == ((1<<DANESSL_USAGE_DANE_TA) | (1<<DANESSL_USAGE_DANE_EE))) - { /* a mixed-usage bundle */ + { /* a mixed-usage bundle */ int i, j, nrec; const char ** dd; int * ddl; @@ -1920,12 +1920,10 @@ int rc; uschar * yield; exim_gnutls_state_st * state = gnutls_session_get_ptr(session); -cert_list = gnutls_certificate_get_peers(session, &cert_list_size); -if (cert_list) +if ((cert_list = gnutls_certificate_get_peers(session, &cert_list_size))) while (cert_list_size--) { - rc = import_cert(&cert_list[cert_list_size], &crt); - if (rc != GNUTLS_E_SUCCESS) + if ((rc = import_cert(&cert_list[cert_list_size], &crt)) != GNUTLS_E_SUCCESS) { DEBUG(D_tls) debug_printf("TLS: peer cert problem: depth %d: %s\n", cert_list_size, gnutls_strerror(rc)); |