bareos: bareos-19.2 38045e71

Author Committer Branch Timestamp Parent
arogge arogge bareos-19.2 2020-02-25 13:34 bareos-19.2 c11f4882 Pending
Affected Issues  0001192: Authorization key rejected by Storage daemon since upgrading director and storage daemons
Changeset stored: initialize jcr->sd_tls_policy

Fixes 0001192: Authorization key rejected by Storage daemon since
upgrading director and storage daemons

Previously the sd_tls_policy member of the JCR in the sd was not
initialized properly. By using the uninitialized value, the SD may
close a valid non-TLS connection which eventually leads to a failing
job.
This patch initializes sd_tls_policy to kBnetTlsNone (0) which lets the
SD accept every connection on a job that was not configured otherwise by
the director.

(cherry picked from commit 884a31ee502ff7562c71533412c4faea26edcbc4)
mod - core/src/include/jcr.h Diff File
mod - core/src/lib/try_tls_handshake_as_a_server.cc Diff File