From: Vsevolod Stakhov Date: Wed, 18 Nov 2020 12:29:22 +0000 (+0000) Subject: [Fix] Fix smtp comments exclusion X-Git-Tag: 2.7~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2df1c28a15669c8fca3dfb69357d7dd3d86fec07;p=thirdparty%2Frspamd.git [Fix] Fix smtp comments exclusion --- diff --git a/src/libmime/email_addr.c b/src/libmime/email_addr.c index 34b2ff81ac..4b8c6bc1c5 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) {