diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-07 14:42:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-07 14:43:15 +0100 |
commit | 3ca316cd22f55b484b0a00a5818617dd585325b4 (patch) | |
tree | bee7488fb1dac0cd71b89f69abfca38430f622c7 /src/libserver/dkim.c | |
parent | b9ef79d942ab8c71b2b05ca9d0d1adb01d1f0755 (diff) | |
download | rspamd-3ca316cd22f55b484b0a00a5818617dd585325b4.tar.gz rspamd-3ca316cd22f55b484b0a00a5818617dd585325b4.zip |
[Minor] Unify substring search routines
Diffstat (limited to 'src/libserver/dkim.c')
-rw-r--r-- | src/libserver/dkim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c index 43b0f6268..fe7e5e8ea 100644 --- a/src/libserver/dkim.c +++ b/src/libserver/dkim.c @@ -1747,7 +1747,7 @@ rspamd_dkim_canonize_header (struct rspamd_dkim_common_ctx *ctx, } PTR_ARRAY_FOREACH (ar, i, rh) { - if (rspamd_substring_search_twoway (rh->raw_value, + if (rspamd_substring_search (rh->raw_value, rh->raw_len, dkim_domain, strlen (dkim_domain)) != -1) { rspamd_dkim_signature_update (ctx, rh->raw_value, |