[glib-networking/openssl-read-write-nonblocking: 1/3] 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/openssl-read-write-nonblocking: 1/3] openssl: popping happens in a loop so the push should also happen there
- Date: Fri, 24 May 2019 14:37:26 +0000 (UTC)
commit 23be68e8c0a2b24386aa9736117e3528e100bfb7
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]