]> source.dussan.org Git - rspamd.git/commitdiff
fix email address parsing: ebraces should increase till matched with obraces 2338/head
authorIgor Ippolitov <iippolitov@gmail.com>
Thu, 12 Jul 2018 13:32:51 +0000 (16:32 +0300)
committerIgor Ippolitov <iippolitov@gmail.com>
Thu, 12 Jul 2018 13:32:51 +0000 (16:32 +0300)
src/libmime/email_addr.c

index a0ad9ac19614cf9eddbe41503bb76b8c64a3454e..50c293b358764ef14064fb64df685327d23479a3 100644 (file)
@@ -372,7 +372,7 @@ rspamd_email_address_from_mime (rspamd_mempool_t *pool,
                                obraces ++;
                        }
                        else if (*p == ')') {
-                               ebraces --;
+                               ebraces ++;
                        }
 
                        if (obraces == ebraces) {