Skip to content

Commit

Permalink
bnet: corrected swapped resource pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Sep 18, 2018
1 parent 6ff6fc4 commit 988bcfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/dird/backup.cc
Expand Up @@ -557,7 +557,7 @@ bool DoNativeBackup(JobControlRecord *jcr)
* TLS Requirement
*/

tls_need = GetLocalTlsPolicyFromConfiguration(client);
tls_need = GetLocalTlsPolicyFromConfiguration(store);

connection_target_address = StorageAddressToContact(client, store);

Expand All @@ -568,7 +568,7 @@ bool DoNativeBackup(JobControlRecord *jcr)
} else {

if (jcr->connection_successful_handshake_ != JobControlRecord::ConnectionHandshakeMode::kTlsFirst) {
tls_need = GetLocalTlsPolicyFromConfiguration(me);
tls_need = GetLocalTlsPolicyFromConfiguration(client);
} else {
tls_need = TlsConfigBase::BNET_TLS_AUTO;
}
Expand Down

0 comments on commit 988bcfa

Please sign in to comment.