commit 2df1c28: [Fix] Fix smtp comments exclusion
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Nov 18 12:35:07 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-11-18 12:29:22 +0000
URL: https://github.com/rspamd/rspamd/commit/2df1c28a15669c8fca3dfb69357d7dd3d86fec07 (HEAD -> master)
[Fix] Fix smtp comments exclusion
---
src/libmime/email_addr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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) {
More information about the Commits
mailing list