diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 16:15:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 16:15:00 +0000 |
commit | 8a3c845cc84808ecb764b2c7e4fa61afeee42bc5 (patch) | |
tree | 7d268ac827524ace3905eef2b5a5b3b80e275ee6 /compat.c | |
parent | Adding upstream version 3.2.7. (diff) | |
download | rsync-8a3c845cc84808ecb764b2c7e4fa61afeee42bc5.tar.xz rsync-8a3c845cc84808ecb764b2c7e4fa61afeee42bc5.zip |
Adding upstream version 3.3.0.upstream/3.3.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'compat.c')
-rw-r--r-- | compat.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -834,6 +834,8 @@ void output_daemon_greeting(int f_out, int am_client) char tmpbuf[MAX_NSTR_STRLEN]; int our_sub = get_subprotocol_version(); + init_checksum_choices(); + get_default_nno_list(&valid_auth_checksums, tmpbuf, MAX_NSTR_STRLEN, '\0'); io_printf(f_out, "@RSYNCD: %d.%d %s\n", protocol_version, our_sub, tmpbuf); @@ -873,8 +875,10 @@ void negotiate_daemon_auth(int f_out, int am_client) } } am_server = save_am_server; - if (md4_is_old && valid_auth_checksums.negotiated_nni->num == CSUM_MD4) + if (md4_is_old && valid_auth_checksums.negotiated_nni->num == CSUM_MD4) { valid_auth_checksums.negotiated_nni->num = CSUM_MD4_OLD; + valid_auth_checksums.negotiated_nni->flags = 0; + } } int get_subprotocol_version() |