aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/email_addr.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-25 12:23:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-25 12:23:32 +0100
commita130a1fa4bcad2d5db9964ad8ef7195b631b08b5 (patch)
treecb7e94edec24674f371ba48ca1694c686ed0edf0 /src/libmime/email_addr.c
parentf08ffd73e83f152ebecaf695be575c8f59711a44 (diff)
downloadrspamd-a130a1fa4bcad2d5db9964ad8ef7195b631b08b5.tar.gz
rspamd-a130a1fa4bcad2d5db9964ad8ef7195b631b08b5.zip
[Minor] Use last `@' character when splitting email address
Diffstat (limited to 'src/libmime/email_addr.c')
-rw-r--r--src/libmime/email_addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/email_addr.c b/src/libmime/email_addr.c
index eaf44fc91..f3aa36218 100644
--- a/src/libmime/email_addr.c
+++ b/src/libmime/email_addr.c
@@ -182,7 +182,7 @@ rspamd_email_address_parse_heuristic (const char *data, size_t len,
}
if (ret) {
- at = memchr (p, '@', len);
+ at = rspamd_memrchr (p, '@', len);
if (at != NULL && at + 1 < end) {
addr->domain = at + 1;