From 1b2688807d0e0b9486ad88470480c9f8641f9241 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 24 Oct 2022 08:38:00 -0700 Subject: Fix protocol <= 29 daemon auth if openssl is handling md4. --- compat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compat.c b/compat.c index a8a6afe8..7acedf0e 100644 --- a/compat.c +++ b/compat.c @@ -873,8 +873,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() -- cgit v1.2.1