diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/str_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index a67a1f378..80f94707a 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -1896,7 +1896,7 @@ rspamd_substring_search (const gchar *in, gsize inlen, rspamd_substring_cmp_func); } else if (inlen == srchlen) { - return rspamd_lc_cmp (srch, in, srchlen) == 0; + return (rspamd_lc_cmp (srch, in, srchlen) == 0 ? 0 : -1); } else { return (-1); |