From e535e62390ebaa02e632f1b7d28805b2265409c6 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Tue, 2 Dec 2014 21:42:28 +0000 Subject: [PATCH] Fix connection of SSL clients to ZNC --- src/Socket.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Socket.cpp b/src/Socket.cpp index ca7ef63c..4b5f85e3 100644 --- a/src/Socket.cpp +++ b/src/Socket.cpp @@ -72,6 +72,10 @@ int CZNCSock::VerifyPeerCertificate(int iPreVerify, X509_STORE_CTX * pStoreCTX) } void CZNCSock::SSLHandShakeFinished() { + if (GetType() != ETConn::OUTBOUND) { + return; + } + X509* pCert = GetX509(); if (!pCert) { DEBUG(GetSockName() + ": No cert");