aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-07 16:57:04 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-07 16:57:04 +0100
commit083e5d7a92f19ac44d0e17d97e434dd1bc212808 (patch)
treea8fb8b68ec7f6d748e535851d3aaa9d8d918b90d /src
parentf15e47c4d9f0b69c648398dd2724ce49e65a79ab (diff)
downloadrspamd-083e5d7a92f19ac44d0e17d97e434dd1bc212808.tar.gz
rspamd-083e5d7a92f19ac44d0e17d97e434dd1bc212808.zip
Fix encryption in client.
Diffstat (limited to 'src')
-rw-r--r--src/client/rspamdclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/rspamdclient.c b/src/client/rspamdclient.c
index dfedb2cae..272fe581b 100644
--- a/src/client/rspamdclient.c
+++ b/src/client/rspamdclient.c
@@ -123,7 +123,7 @@ rspamd_client_finish_handler (struct rspamd_http_connection *conn,
return 0;
}
else {
- if (msg->body == NULL || msg->body->len == 0 || msg->code != 200) {
+ if (msg->body == NULL || msg->body_buf.len == 0 || msg->code != 200) {
err = g_error_new (RCLIENT_ERROR, msg->code, "HTTP error: %d, %.*s",
msg->code,
(gint)msg->status->len, msg->status->str);
@@ -134,7 +134,7 @@ rspamd_client_finish_handler (struct rspamd_http_connection *conn,
}
parser = ucl_parser_new (0);
- if (!ucl_parser_add_chunk (parser, msg->body->str, msg->body->len)) {
+ if (!ucl_parser_add_chunk (parser, msg->body_buf.begin, msg->body_buf.len)) {
err = g_error_new (RCLIENT_ERROR, msg->code, "Cannot parse UCL: %s",
ucl_parser_get_error (parser));
ucl_parser_free (parser);