[glib-networking/enable-openssl-tests] openssl: popping happens in a loop so the push should also happen there
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/enable-openssl-tests] openssl: popping happens in a loop so the push should also happen there
- Date: Thu, 23 May 2019 14:48:15 +0000 (UTC)
commit dd84f8548c7db800efb9019c72019124891c5dd5
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]