]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Fix reply decryption when using only separate read/write keys
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 5 Oct 2025 14:03:48 +0000 (15:03 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 5 Oct 2025 14:03:48 +0000 (15:03 +0100)
commit9744f46f4e5219f47b43a228ba9c53d00b688399
tree25c20a2ac64e198e46d51ab7cefffb5669ef5091
parent0e96ab128c649926c81e091aab7d737ed504f981
[Fix] Fix reply decryption when using only separate read/write keys

In fuzzy_process_reply(), the tag was accessed from encrypted data before
decryption, leading to incorrect key selection. When only separate
read_encryption_key and write_encryption_key were configured (without common
encryption_key), the fallback to NULL keys caused crashes.

Now the function tries decryption with all available key pairs (read, write,
and common) until MAC verification succeeds, properly handling all key
configuration scenarios.
src/plugins/fuzzy_check.c