diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-09 16:22:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-09 16:22:32 +0100 |
commit | 5f40cc6a64897da15bccefb746aea490ab55820c (patch) | |
tree | 6fbcf58fd7c0210ed5f3eea1f49afbbc74236f8e /src/libserver/url.h | |
parent | 6e16b0a8007bac6af3bb692c7c85fc793c2fbb71 (diff) | |
download | rspamd-5f40cc6a64897da15bccefb746aea490ab55820c.tar.gz rspamd-5f40cc6a64897da15bccefb746aea490ab55820c.zip |
[Fix] Add another safe-guard in urls processing
Diffstat (limited to 'src/libserver/url.h')
-rw-r--r-- | src/libserver/url.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/url.h b/src/libserver/url.h index 83a2a7f17..53c4abbeb 100644 --- a/src/libserver/url.h +++ b/src/libserver/url.h @@ -167,7 +167,7 @@ const gchar *rspamd_url_strerror (int err); */ gboolean rspamd_url_find_tld (const gchar *in, gsize inlen, rspamd_ftok_t *out); -typedef void (*url_insert_function) (struct rspamd_url *url, +typedef gboolean (*url_insert_function) (struct rspamd_url *url, gsize start_offset, gsize end_offset, void *ud); /** @@ -208,7 +208,7 @@ void rspamd_url_find_single (rspamd_mempool_t *pool, * @param end_offset * @param ud */ -void rspamd_url_task_subject_callback (struct rspamd_url *url, +gboolean rspamd_url_task_subject_callback (struct rspamd_url *url, gsize start_offset, gsize end_offset, gpointer ud); |