From f86d20d4cd11ca6e3b4c2ffcc02eaa91ad9ee644 Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Wed, 9 Oct 2019 15:22:24 +0200 Subject: [PATCH] Improve readibility of terrible if --- libretroshare/src/pqi/pqissl.cc | 2 +- libretroshare/src/pqi/pqissludp.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/pqi/pqissl.cc b/libretroshare/src/pqi/pqissl.cc index a10e7853a..773c74e50 100644 --- a/libretroshare/src/pqi/pqissl.cc +++ b/libretroshare/src/pqi/pqissl.cc @@ -1078,7 +1078,7 @@ int pqissl::SSL_Connection_Complete() /* if we are passive - then accept! */ int err; - if (sslmode) + if (sslmode == PQISSL_ACTIVE) { #ifdef PQISSL_LOG_DEBUG rslog(RSL_DEBUG_BASIC, pqisslzone, "--------> Active Connect! Client side."); diff --git a/libretroshare/src/pqi/pqissludp.cc b/libretroshare/src/pqi/pqissludp.cc index 0b1b95be1..9700f7cdc 100644 --- a/libretroshare/src/pqi/pqissludp.cc +++ b/libretroshare/src/pqi/pqissludp.cc @@ -187,7 +187,7 @@ int pqissludp::Initiate_Connection() out += sockaddr_storage_tostring(remote_addr); out += " "; - if (sslmode) + if (sslmode == PQISSL_ACTIVE) { out += "ACTIVE Connect (SSL_Connect)"; }