aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-18 12:29:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-18 12:29:22 +0000
commit2df1c28a15669c8fca3dfb69357d7dd3d86fec07 (patch)
tree40dd9cfabf4ac59b9b594b98598edf393ccfc65d
parent0c18f2f9fbcf581bf398bc3c30d1a78648b50911 (diff)
downloadrspamd-2df1c28a15669c8fca3dfb69357d7dd3d86fec07.tar.gz
rspamd-2df1c28a15669c8fca3dfb69357d7dd3d86fec07.zip
[Fix] Fix smtp comments exclusion
-rw-r--r--src/libmime/email_addr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmime/email_addr.c b/src/libmime/email_addr.c
index 34b2ff81a..4b8c6bc1c 100644
--- a/src/libmime/email_addr.c
+++ b/src/libmime/email_addr.c
@@ -294,10 +294,11 @@ rspamd_email_address_from_mime (rspamd_mempool_t *pool, const gchar *hdr,
state = parse_quoted;
}
else if (*p == '(') {
- obraces ++;
+ obraces ++; /* To avoid ) itself being copied */
}
else if (*p == ')') {
ebraces ++;
+ p ++;
}
if (obraces == ebraces) {