aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-12 14:55:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-12 14:55:31 +0100
commit28f3a3e173bf5e34e0d95cf0e19d57f0a9fa70f3 (patch)
tree16a73ae7af590c8b418cd35589b4a31cd9cb270a /src
parentfec2e1314d431e9c965529abdfe7b1d5e66e450f (diff)
downloadrspamd-28f3a3e173bf5e34e0d95cf0e19d57f0a9fa70f3.tar.gz
rspamd-28f3a3e173bf5e34e0d95cf0e19d57f0a9fa70f3.zip
Fix coredump in a client (double free).
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 ce096f7c0..363279239 100644
--- a/src/client/rspamdclient.c
+++ b/src/client/rspamdclient.c
@@ -113,7 +113,7 @@ rspamd_client_finish_handler (struct rspamd_http_connection *conn,
msg->status ? msg->status->str : "unknown error");
req->cb (c, msg, c->server_name->str, NULL, req->ud, err);
g_error_free (err);
- return -1;
+ return 0;
}
parser = ucl_parser_new (0);
@@ -123,7 +123,7 @@ rspamd_client_finish_handler (struct rspamd_http_connection *conn,
ucl_parser_free (parser);
req->cb (c, msg, c->server_name->str, NULL, req->ud, err);
g_error_free (err);
- return -1;
+ return 0;
}
req->cb (c, msg, c->server_name->str, ucl_parser_get_object (