bareos: master 884a31ee

Author Committer Branch Timestamp Parent
arogge arogge master 2020-02-25 13:34 master c4ad3a37 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.
mod - core/src/include/jcr.h Diff File
mod - core/src/lib/try_tls_handshake_as_a_server.cc Diff File