aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/email_addr.c
diff options
context:
space:
mode:
authorIgor Ippolitov <iippolitov@gmail.com>2018-07-12 16:32:51 +0300
committerIgor Ippolitov <iippolitov@gmail.com>2018-07-12 16:32:51 +0300
commit58f2b7c2beec64d543d62b94f57efe304f68bb75 (patch)
tree642a9d9d8df4a45622f1f81c11e155ce1be99ccd /src/libmime/email_addr.c
parent2cfeff3710a9e5dd435d8d0e9b1e54ca01659ac4 (diff)
downloadrspamd-58f2b7c2beec64d543d62b94f57efe304f68bb75.tar.gz
rspamd-58f2b7c2beec64d543d62b94f57efe304f68bb75.zip
fix email address parsing: ebraces should increase till matched with obraces
Diffstat (limited to 'src/libmime/email_addr.c')
-rw-r--r--src/libmime/email_addr.c2
1 files changed, 1 insertions, 1 deletions
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) {