aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/rspamdclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/rspamdclient.c')
-rw-r--r--src/client/rspamdclient.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/rspamdclient.c b/src/client/rspamdclient.c
index d07b24332..24240d3c2 100644
--- a/src/client/rspamdclient.c
+++ b/src/client/rspamdclient.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Vsevolod Stakhov
+ * Copyright 2025 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -192,7 +192,8 @@ rspamd_client_finish_handler(struct rspamd_http_connection *conn,
if (zout.pos == zout.size) {
/* We need to extend output buffer */
zout.size = zout.size * 2;
- zout.dst = g_realloc(zout.dst, zout.size);
+ out = g_realloc(zout.dst, zout.size);
+ zout.dst = out;
}
}
@@ -231,7 +232,7 @@ rspamd_client_finish_handler(struct rspamd_http_connection *conn,
}
}
- parser = ucl_parser_new(0);
+ parser = ucl_parser_new(UCL_PARSER_SAFE_FLAGS);
if (!ucl_parser_add_chunk_full(parser, start, len,
ucl_parser_get_default_priority(parser),
UCL_DUPLICATE_APPEND, UCL_PARSE_AUTO)) {