From: Amos Jeffries Date: Fri, 13 Jan 2017 10:43:23 +0000 (+1300) Subject: Fix compile error after merge X-Git-Tag: M-staged-PR71~284^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d15a0c168651ade27a975bffaf029801ac13f21;p=thirdparty%2Fsquid.git Fix compile error after merge --- diff --git a/src/ssl/support.cc b/src/ssl/support.cc index 1c218fed75..c91c57cbe7 100644 --- a/src/ssl/support.cc +++ b/src/ssl/support.cc @@ -23,6 +23,7 @@ #include "globals.h" #include "ipc/MemMap.h" #include "security/CertError.h" +#include "security/Session.h" #include "SquidConfig.h" #include "SquidTime.h" #include "ssl/bio.h" @@ -1019,7 +1020,11 @@ Ssl::verifySslCertificate(Security::ContextPointer &ctx, CertificateProperties c assert(0); #else // Temporary ssl for getting X509 certificate from SSL_CTX. - Security::SessionPointer ssl(SSL_new(ctx.get())); + Security::SessionPointer ssl(SSL_new(ctx.get()), [](SSL *p) { + debugs(83, 5, "SSL_free session=" << (void*)p); + SSL_free(p); + }); + debugs(83, 5, "SSL_new session=" << (void*)ssl.get()); X509 * cert = SSL_get_certificate(ssl.get()); #endif if (!cert)