From f24322b19b530c5f4a2b4a0895fe01b8ac28c5f9 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Wed, 23 Oct 2013 11:11:23 -0700 Subject: [PATCH] return 0 if import of cert failed to match other error conditions. --- mutt_ssl_gnutls.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mutt_ssl_gnutls.c b/mutt_ssl_gnutls.c index e619c2d9..551dde73 100644 --- a/mutt_ssl_gnutls.c +++ b/mutt_ssl_gnutls.c @@ -692,6 +692,9 @@ static int tls_check_preauth (const gnutls_datum_t *certdata, return -1; } +/* + * Returns 0 on failure, nonzero on success. + */ static int tls_check_one_certificate (const gnutls_datum_t *certdata, gnutls_certificate_status certstat, const char* hostname, int idx, int len) @@ -745,7 +748,7 @@ static int tls_check_one_certificate (const gnutls_datum_t *certdata, mutt_error (_("Error processing certificate data")); mutt_sleep (2); gnutls_x509_crt_deinit (cert); - return -1; + return 0; } menu = mutt_new_menu (-1); -- 2.40.0