From 58f2b7c2beec64d543d62b94f57efe304f68bb75 Mon Sep 17 00:00:00 2001 From: Igor Ippolitov Date: Thu, 12 Jul 2018 16:32:51 +0300 Subject: [PATCH] fix email address parsing: ebraces should increase till matched with obraces --- src/libmime/email_addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5