aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r--src/plugins/surbl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 3b33e3e7f..444914591 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -972,9 +972,7 @@ surbl_module_parse_rule (const ucl_object_t* value, struct rspamd_config* cfg)
if (loaded) {
if (lua_pcall (L, 0, 1, err_idx) != 0) {
- tb = lua_touserdata (L, -1);
- msg_err_config ("call failed: %v\n", tb);
- g_string_free (tb, TRUE);
+ msg_err_config ("call failed: %s\n", lua_tostring (L, -1));
}
else if (lua_isfunction (L, -1)) {
new_suffix->url_process_cbref = luaL_ref (L,