[glib-networking] gnutls: handle rehandshake request correctly



commit ce16e682c97afb05741c5e37924685c2a1c1ef80
Author: Dan Winship <danw gnome org>
Date:   Thu Aug 25 18:53:42 2011 -0400

    gnutls: handle rehandshake request correctly
    
    Based on a patch from Igor Makarov
    
    https://bugzilla.gnome.org/show_bug.cgi?id=653645

 tls/gnutls/gtlsconnection-gnutls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 7cb7f9c..0882852 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -575,7 +575,7 @@ end_gnutls_io (GTlsConnectionGnutls  *gnutls,
             ret == GNUTLS_E_WARNING_ALERT_RECEIVED) &&	\
            !gnutls->priv->error);			\
   ret = end_gnutls_io (gnutls, ret, error);		\
-  if (ret < 0 && error && !*error)			\
+  if (ret < 0 && ret != GNUTLS_E_REHANDSHAKE && error && !*error) \
     {							\
       g_set_error (error, G_TLS_ERROR, G_TLS_ERROR_MISC,\
                    errmsg, gnutls_strerror (ret));	\



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