Init the checksum choices before the daemon auth.
authorWayne Davison <wayne@opencoder.net>
Tue, 25 Oct 2022 15:55:07 +0000 (08:55 -0700)
committerWayne Davison <wayne@opencoder.net>
Tue, 25 Oct 2022 16:04:45 +0000 (09:04 -0700)
compat.c

index 7acedf0e984c06198b769fef0fa7ef5e5d0d312e..4ce8c6d010d8033838152b31a6b9c59d36381ee7 100644 (file)
--- a/compat.c
+++ b/compat.c
@@ -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);