summaryrefslogtreecommitdiffstats
path: root/src/rspamd_proxy.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-13 11:22:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-13 11:23:16 +0100
commitc012c294eba9c6cf1fd8a921c00affad65de2256 (patch)
tree50d5dc6ad8cc89537fc5ebe2ade8ece6909a2926 /src/rspamd_proxy.c
parentc85bfc1ac4012e1d276907a72a4abe6682d1f53d (diff)
downloadrspamd-c012c294eba9c6cf1fd8a921c00affad65de2256.tar.gz
rspamd-c012c294eba9c6cf1fd8a921c00affad65de2256.zip
[Minor] Log bad output if proxied connection returns garbadge
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r--src/rspamd_proxy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index 4af5ee5f4..276e304b9 100644
--- a/src/rspamd_proxy.c
+++ b/src/rspamd_proxy.c
@@ -917,9 +917,14 @@ proxy_backend_parse_results (struct rspamd_proxy_session *session,
parser = ucl_parser_new (0);
if (!ucl_parser_add_chunk (parser, in, inlen)) {
+ gchar *encoded;
+
+ encoded = rspamd_encode_base64 (in, inlen, 0, NULL);
msg_err_session ("cannot parse input: %s", ucl_parser_get_error (
parser));
+ msg_err_session ("input encoded: %s", encoded);
ucl_parser_free (parser);
+ g_free (encoded);
return FALSE;
}