Browse Source

Fix multiple DKIM signatures for relaxed method.

tags/1.0.0
Vsevolod Stakhov 8 years ago
parent
commit
7351103009
2 changed files with 5 additions and 2 deletions
  1. 4
    2
      src/libserver/dkim.c
  2. 1
    0
      src/libserver/dkim.h

+ 4
- 2
src/libserver/dkim.c View File

@@ -819,6 +819,8 @@ rspamd_create_dkim_context (const gchar *sig,
(rspamd_mempool_destruct_t)g_checksum_free,
ctx->headers_hash);

ctx->dkim_header = sig;

return ctx;
}

@@ -1576,9 +1578,9 @@ rspamd_dkim_canonize_header (rspamd_dkim_context_t *ctx,
}
}
else {
/* For signature check just use the first dkim header */
/* For signature check just use the saved dkim header */
rspamd_dkim_canonize_header_relaxed (ctx,
rh->value,
ctx->dkim_header,
header_name,
is_sig);
}

+ 1
- 0
src/libserver/dkim.h View File

@@ -147,6 +147,7 @@ typedef struct rspamd_dkim_context_s {
GPtrArray *hlist;
guint ver;
gchar *dns_key;
const gchar *dkim_header;
GChecksum *headers_hash;
GChecksum *body_hash;
} rspamd_dkim_context_t;

Loading…
Cancel
Save