[glib-networking/wip/openssl: 17/20] Propagate error if there is an error to propagate
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/openssl: 17/20] Propagate error if there is an error to propagate
- Date: Tue, 13 Oct 2015 09:55:06 +0000 (UTC)
commit eb5acc4bf15e33ccfb8da18a575bb2ddfbafbf5e
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Sep 25 11:40:33 2015 +0200
Propagate error if there is an error to propagate
tls/openssl/gtlsconnection-openssl.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index f83f6d7..ef48c7d 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -143,7 +143,9 @@ end_openssl_io (GTlsConnectionOpenssl *openssl,
return status;
}
- g_propagate_error (error, my_error);
+ if (my_error != NULL)
+ g_propagate_error (error, my_error);
+
if (error && !*error)
{
va_list ap;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]