Mercurial > dovecot > core-2.2
changeset 18635:cc59ac0f6a45
lib-fts: Added assert to fts_filter_filter() to make sure input token isn't empty
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 11 May 2015 16:00:21 +0300 |
parents | aa3374b9ce0f |
children | d4541fd7a531 |
files | src/lib-fts/fts-filter.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-fts/fts-filter.c Mon May 11 14:42:18 2015 +0300 +++ b/src/lib-fts/fts-filter.c Mon May 11 16:00:21 2015 +0300 @@ -95,6 +95,8 @@ { int ret = 0; + i_assert((*token)[0] != '\0'); + /* Recurse to parent. */ if (filter->parent != NULL) ret = fts_filter_filter(filter->parent, token, error_r);