From: Igor Ippolitov Date: Thu, 12 Jul 2018 13:32:51 +0000 (+0300) Subject: fix email address parsing: ebraces should increase till matched with obraces X-Git-Tag: 1.7.9~130^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=58f2b7c2beec64d543d62b94f57efe304f68bb75;p=rspamd.git fix email address parsing: ebraces should increase till matched with obraces --- diff --git a/src/libmime/email_addr.c b/src/libmime/email_addr.c index a0ad9ac19..50c293b35 100644 --- a/src/libmime/email_addr.c +++ b/src/libmime/email_addr.c @@ -372,7 +372,7 @@ rspamd_email_address_from_mime (rspamd_mempool_t *pool, obraces ++; } else if (*p == ')') { - ebraces --; + ebraces ++; } if (obraces == ebraces) {