Improve readibility of terrible if

This commit is contained in:
Gioacchino Mazzurco 2019-10-09 15:22:24 +02:00
parent 63b787a504
commit f86d20d4cd
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
2 changed files with 2 additions and 2 deletions

View File

@ -1078,7 +1078,7 @@ int pqissl::SSL_Connection_Complete()
/* if we are passive - then accept! */ /* if we are passive - then accept! */
int err; int err;
if (sslmode) if (sslmode == PQISSL_ACTIVE)
{ {
#ifdef PQISSL_LOG_DEBUG #ifdef PQISSL_LOG_DEBUG
rslog(RSL_DEBUG_BASIC, pqisslzone, "--------> Active Connect! Client side."); rslog(RSL_DEBUG_BASIC, pqisslzone, "--------> Active Connect! Client side.");

View File

@ -187,7 +187,7 @@ int pqissludp::Initiate_Connection()
out += sockaddr_storage_tostring(remote_addr); out += sockaddr_storage_tostring(remote_addr);
out += " "; out += " ";
if (sslmode) if (sslmode == PQISSL_ACTIVE)
{ {
out += "ACTIVE Connect (SSL_Connect)"; out += "ACTIVE Connect (SSL_Connect)";
} }