[glib-networking/openssl-read-write-nonblocking: 2/4] openssl: popping happens in a loop so the push should also happen there



commit 733d260a69500dca25018924b391bf6211399e83
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu May 23 10:40:19 2019 +0200

    openssl: popping happens in a loop so the push should also happen there

 tls/openssl/gtlsconnection-openssl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index 04f6505..6eb803b 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -194,11 +194,11 @@ end_openssl_io (GTlsConnectionOpenssl  *openssl,
   return G_TLS_CONNECTION_BASE_ERROR;
 }
 
-#define BEGIN_OPENSSL_IO(openssl, direction, timeout, cancellable)        \
-  g_tls_connection_base_push_io (G_TLS_CONNECTION_BASE (openssl),         \
-                                 direction, timeout, cancellable);         \
+#define BEGIN_OPENSSL_IO(openssl, direction, timeout, cancellable)          \
   do {                                                                      \
-    char error_str[256];
+    char error_str[256];                                                    \
+    g_tls_connection_base_push_io (G_TLS_CONNECTION_BASE (openssl),         \
+                                   direction, timeout, cancellable);
 
 #define END_OPENSSL_IO(openssl, direction, ret, status, errmsg, err)        \
     ERR_error_string_n (SSL_get_error (ssl, ret), error_str, sizeof(error_str)); \


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