aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-19 18:08:33 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-19 18:08:33 +0000
commitf5508c5161361dbc09eb0ff0a16691e708516546 (patch)
treeef6491c1e1708bf4245a1651eab48e20ce6f3c60 /src/lua/lua_util.c
parentbeb98631d782d976c952182c398033db5f6a8c04 (diff)
downloadrspamd-f5508c5161361dbc09eb0ff0a16691e708516546.tar.gz
rspamd-f5508c5161361dbc09eb0ff0a16691e708516546.zip
[Minor] Small fixes in lua api
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r--src/lua/lua_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 03afb2913..3a12731c5 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -688,10 +688,11 @@ lua_util_decode_base64 (lua_State *L)
if (t != NULL) {
s = t->start;
inlen = t->len;
- zero_copy = TRUE;
+
if (t->flags & RSPAMD_TEXT_FLAG_OWN) {
t->flags = 0;
grab_own = TRUE;
+ zero_copy = TRUE;
}
}
}