commit a130a1f: [Minor] Use last `@' character when splitting email address
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Sep 25 11:28:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-09-25 12:23:32 +0100
URL: https://github.com/rspamd/rspamd/commit/a130a1fa4bcad2d5db9964ad8ef7195b631b08b5 (HEAD -> master)
[Minor] Use last `@' character when splitting email address
---
src/libmime/email_addr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the Commits
mailing list