diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-03-05 16:50:48 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-03-05 16:50:48 +0000 |
commit | 10bb08dd2d8484d0d1d2ae507b94aaa24f48b61b (patch) | |
tree | 4be95a74ed82002f2ed4b295532ba3f3fde49dba /src/libserver/http | |
parent | d708e8979b0e0f16146e067a7b3f59f7c28cb2ba (diff) | |
download | rspamd-10bb08dd2d8484d0d1d2ae507b94aaa24f48b61b.tar.gz rspamd-10bb08dd2d8484d0d1d2ae507b94aaa24f48b61b.zip |
[Minor] Various fixes for display link detection
Diffstat (limited to 'src/libserver/http')
-rw-r--r-- | src/libserver/http/http_router.c | 2 | ||||
-rw-r--r-- | src/libserver/http/http_util.c | 2 | ||||
-rw-r--r-- | src/libserver/http/http_util.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/http/http_router.c b/src/libserver/http/http_router.c index a5b960e72..960df0ce3 100644 --- a/src/libserver/http/http_router.c +++ b/src/libserver/http/http_router.c @@ -291,7 +291,7 @@ rspamd_http_router_finish_handler (struct rspamd_http_connection *conn, http_parser_parse_url (msg->url->str, msg->url->len, TRUE, &u); if (u.field_set & (1 << UF_PATH)) { - guint unnorm_len; + gsize unnorm_len; pathbuf = g_malloc (u.field_data[UF_PATH].len); memcpy (pathbuf, msg->url->str + u.field_data[UF_PATH].off, diff --git a/src/libserver/http/http_util.c b/src/libserver/http/http_util.c index ec9d9fa58..fd5adb3c1 100644 --- a/src/libserver/http/http_util.c +++ b/src/libserver/http/http_util.c @@ -302,7 +302,7 @@ rspamd_http_date_format (gchar *buf, gsize len, time_t time) } void -rspamd_http_normalize_path_inplace (gchar *path, guint len, guint *nlen) +rspamd_http_normalize_path_inplace (gchar *path, guint len, gsize *nlen) { const gchar *p, *end, *slash = NULL, *dot = NULL; gchar *o; diff --git a/src/libserver/http/http_util.h b/src/libserver/http/http_util.h index 7a22ffb16..19b497f30 100644 --- a/src/libserver/http/http_util.h +++ b/src/libserver/http/http_util.h @@ -47,7 +47,7 @@ glong rspamd_http_date_format (gchar *buf, gsize len, time_t time); * @param len * @param nlen */ -void rspamd_http_normalize_path_inplace (gchar *path, guint len, guint *nlen); +void rspamd_http_normalize_path_inplace (gchar *path, guint len, gsize *nlen); #ifdef __cplusplus } |