aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/email_addr.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-13 14:06:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-13 14:06:24 +0000
commit5edffd0d4a9ac92c63b5f802c4242b18f203de07 (patch)
treeda7c2855f6640727e37a916b4735f105916198f6 /src/libmime/email_addr.c
parentb716e0fd650d5b9fc5985c6354460c5074bc5681 (diff)
downloadrspamd-5edffd0d4a9ac92c63b5f802c4242b18f203de07.tar.gz
rspamd-5edffd0d4a9ac92c63b5f802c4242b18f203de07.zip
[Minor] Core: Fix parsing of addresses with comma in names
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 b936af586..9aa2d0618 100644
--- a/src/libmime/email_addr.c
+++ b/src/libmime/email_addr.c
@@ -284,7 +284,7 @@ rspamd_email_address_from_mime (rspamd_mempool_t *pool,
state = parse_addr;
}
else if (*p == ',') {
- if (p > c) {
+ if (p > c && seen_at) {
/*
* Last token must be the address:
* e.g. Some name name@domain.com