[glib-networking/mcatanzaro/tls1.2] gnutls: fix a couple error messages



commit 641bbf746124411fb264571c5278dcf9c2e37c72
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Aug 19 14:16:53 2019 -0500

    gnutls: fix a couple error messages
    
    (unknown error code) isn't the greatest possible error message.

 tls/gnutls/gtlsconnection-gnutls.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index d2c7e7e..22fe009 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -364,7 +364,7 @@ end_gnutls_io (GTlsConnectionGnutls  *gnutls,
         {
           g_clear_error (&my_error);
           g_set_error (error, G_TLS_ERROR, G_TLS_ERROR_NOT_TLS,
-                       _("Peer failed to perform TLS handshake: %s"), gnutls_strerror (status));
+                       _("Peer failed to perform TLS handshake: %s"), gnutls_strerror (ret));
           return G_TLS_CONNECTION_BASE_ERROR;
         }
     }
@@ -388,7 +388,7 @@ end_gnutls_io (GTlsConnectionGnutls  *gnutls,
         {
           g_clear_error (&my_error);
           g_set_error (error, G_TLS_ERROR, G_TLS_ERROR_NOT_TLS,
-                       _("Peer failed to perform TLS handshake: %s"), gnutls_strerror (status));
+                       _("Peer failed to perform TLS handshake: %s"), gnutls_strerror (ret));
           return G_TLS_CONNECTION_BASE_ERROR;
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]