mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-18 17:07:45 +02:00
Changed conditional to match coding standard #4650
This commit is contained in:
parent
81a70135bd
commit
1af9d58a9b
1 changed files with 12 additions and 2 deletions
|
@ -272,7 +272,12 @@ SecureSocket::secureAccept(int socket)
|
||||||
ARCH->sleep(1);
|
ARCH->sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_secureReady = (0 == retry) ? true : false;
|
if (retry == 0) {
|
||||||
|
m_secureReady = true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
m_secureReady = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (m_secureReady) {
|
if (m_secureReady) {
|
||||||
LOG((CLOG_INFO "accepted secure socket"));
|
LOG((CLOG_INFO "accepted secure socket"));
|
||||||
|
@ -303,7 +308,12 @@ SecureSocket::secureConnect(int socket)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_secureReady = (0 == retry) ? true : false;
|
if (retry == 0) {
|
||||||
|
m_secureReady = true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
m_secureReady = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (m_secureReady) {
|
if (m_secureReady) {
|
||||||
if (verifyCertFingerprint()) {
|
if (verifyCertFingerprint()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue