diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-13 11:22:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-13 11:23:16 +0100 |
commit | c012c294eba9c6cf1fd8a921c00affad65de2256 (patch) | |
tree | 50d5dc6ad8cc89537fc5ebe2ade8ece6909a2926 /src/rspamd_proxy.c | |
parent | c85bfc1ac4012e1d276907a72a4abe6682d1f53d (diff) | |
download | rspamd-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.c | 5 |
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; } |