qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject qpid-proton git commit: PROTON-1886: Dump the thread's SSL error queue in the event that SSL_new fails. Closes #152
Date Tue, 21 Aug 2018 14:43:25 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master 803a47ed3 -> 213a7aa41


PROTON-1886: Dump the thread's SSL error queue in the event that SSL_new fails.
Closes #152


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/213a7aa4
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/213a7aa4
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/213a7aa4

Branch: refs/heads/master
Commit: 213a7aa416d3c678e04d562ac77e0b7e0ff6a166
Parents: 803a47e
Author: Keith Wall <kwall@apache.org>
Authored: Fri Aug 3 10:29:22 2018 +0100
Committer: Andrew Stitcher <astitcher@apache.org>
Committed: Tue Aug 21 10:39:32 2018 -0400

----------------------------------------------------------------------
 c/src/ssl/openssl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/213a7aa4/c/src/ssl/openssl.c
----------------------------------------------------------------------
diff --git a/c/src/ssl/openssl.c b/c/src/ssl/openssl.c
index c7aef57..2d086c7 100644
--- a/c/src/ssl/openssl.c
+++ b/c/src/ssl/openssl.c
@@ -197,7 +197,7 @@ static void ssl_log_clear_data(pn_transport_t *transport, const char *data,
size
   }
 }
 
-// unrecoverable SSL failure occured, notify transport and generate error code.
+// unrecoverable SSL failure occurred, notify transport and generate error code.
 static int ssl_failed(pn_transport_t *transport)
 {
   pni_ssl_t *ssl = transport->ssl;
@@ -1235,6 +1235,7 @@ static int init_ssl_socket(pn_transport_t* transport, pni_ssl_t *ssl)
   ssl->ssl = SSL_new(ssl->domain->ctx);
   if (!ssl->ssl) {
     pn_transport_logf(transport, "SSL socket setup failure." );
+    ssl_log_flush(transport);
     return -1;
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message