Browse Source

[Minor] Oops, fix starts_with

tags/1.9.0
Vsevolod Stakhov 5 years ago
parent
commit
f66cd95dcc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libutil/fstring.c

+ 1
- 1
src/libutil/fstring.c View File

@@ -382,7 +382,7 @@ rspamd_ftok_starts_with (const rspamd_ftok_t *s1,
g_assert (s1 != NULL && s2 != NULL);

if (s1->len >= s2->len) {
return !!(memcmp (s1->begin, s2->begin, s1->len) == 0);
return !!(memcmp (s1->begin, s2->begin, s2->len) == 0);
}

return FALSE;

Loading…
Cancel
Save