[glib-networking: 58/129] SSL_R_SHUTDOWN_WHILE_IN_INIT might not be defined



commit bdae8f5f26a8bcdaac25bd73563e2261fffe4497
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Oct 18 09:08:54 2017 +0200

    SSL_R_SHUTDOWN_WHILE_IN_INIT might not be defined

 tls/openssl/gtlsconnection-openssl.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index d93308e..0d160b6 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -151,6 +151,7 @@ end_openssl_io (GTlsConnectionOpenssl  *openssl,
         }
     }
 
+#ifdef SSL_R_SHUTDOWN_WHILE_IN_INIT
   /* XXX: this error happens on ubuntu when shutting down the connection, it
    * seems to be a bug in a specific version of openssl, so let's handle it
    * gracefully
@@ -160,6 +161,7 @@ end_openssl_io (GTlsConnectionOpenssl  *openssl,
       g_clear_error (&my_error);
       return G_TLS_CONNECTION_BASE_OK;
     }
+#endif
 
   if (reason == SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE)
     {


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