]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Backward-compatible version negotiation for multi-flag fuzzy 5894/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 19 Feb 2026 17:32:10 +0000 (17:32 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 19 Feb 2026 17:32:10 +0000 (17:32 +0000)
commit1956bf851d0fd0b2f2dd47de1518cf93e1456517
tree292d669d44c424962b7eacf58fe80f7e85268d2b
parenta0945893e2523f69b43c15d94aacc178a8497e06
[Fix] Backward-compatible version negotiation for multi-flag fuzzy

Use an unused bit (bit 4) in the version byte as a v2 capability flag.
New clients send version 4|0x10 initially; old servers mask to 4 and
work normally, new servers see the cap bit and send v2 replies. Once
a v2 reply is received, subsequent requests use native version 5.
src/fuzzy_storage.c
src/libserver/fuzzy_wire.h
src/plugins/fuzzy_check.c