[glib-networking/enable-openssl-tests: 4/7] 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: 4/7] openssl: popping happens in a loop so the push should also happen there
- Date: Fri, 24 May 2019 10:32:29 +0000 (UTC)
commit c4d78d40db43f5e066b5cabcfd009d1449c73010
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]