trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject git commit: TS-2776: Core dump inside openssl library Changed the version check to runtime and added a debug statement
Date Tue, 03 Jun 2014 16:59:40 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/5.0.x 5fa8f0772 -> 9c6bb37b3


TS-2776: Core dump inside openssl library
Changed the version check to runtime and added a debug statement


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/9c6bb37b
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/9c6bb37b
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/9c6bb37b

Branch: refs/heads/5.0.x
Commit: 9c6bb37b39504056683835038aa17fcaedb3c31d
Parents: 5fa8f07
Author: Bryan Call <bcall@apache.org>
Authored: Tue Jun 3 09:57:24 2014 -0700
Committer: Bryan Call <bcall@apache.org>
Committed: Tue Jun 3 09:57:24 2014 -0700

----------------------------------------------------------------------
 iocore/net/SSLUtils.cc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9c6bb37b/iocore/net/SSLUtils.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc
index 99e4d6d..3d98a5c 100644
--- a/iocore/net/SSLUtils.cc
+++ b/iocore/net/SSLUtils.cc
@@ -903,9 +903,10 @@ SSLInitServerContext(
   }
 
 #ifdef SSL_MODE_RELEASE_BUFFERS
-#if OPENSSL_VERSION_NUMBER > 0x1000107fL
-  SSL_CTX_set_mode(ctx, SSL_MODE_RELEASE_BUFFERS);
-#endif
+  if (OPENSSL_VERSION_NUMBER > 0x1000107fL) {
+    Debug("ssl", "enabling SSL_MODE_RELEASE_BUFFERS");
+    SSL_CTX_set_mode(ctx, SSL_MODE_RELEASE_BUFFERS);
+  }
 #endif
   SSL_CTX_set_quiet_shutdown(ctx, 1);
 


Mime
View raw message