Browse Source

[Minor] Fix DKIM headers extraction

tags/2.0
Vsevolod Stakhov 5 years ago
parent
commit
290857ea8d
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/libserver/dkim.c

+ 3
- 3
src/libserver/dkim.c View File

@@ -2172,14 +2172,14 @@ rspamd_dkim_canonize_header (struct rspamd_dkim_common_ctx *ctx,
rh = rspamd_message_get_header_array (task, header_name);

if (rh) {
/* Check uniqueness of the header */
/* Check uniqueness of the header but we count from the bottom to top */
for (cur = rh->prev; ; cur = cur->prev) {
hdr_cnt ++;

if (hdr_cnt == count) {
sel = cur;
}

hdr_cnt ++;

if (cur->next == NULL) {
/* Cycle */
break;

Loading…
Cancel
Save