]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use last `@' character when splitting email address
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Sep 2020 11:23:32 +0000 (12:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Sep 2020 11:23:32 +0000 (12:23 +0100)
src/libmime/email_addr.c

index eaf44fc918273c22472852f24c432ed404a5fad3..f3aa36218e2af29922ac51f5262b2e0d44199e2e 100644 (file)
@@ -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;