diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-19 18:08:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-19 18:08:33 +0000 |
commit | f5508c5161361dbc09eb0ff0a16691e708516546 (patch) | |
tree | ef6491c1e1708bf4245a1651eab48e20ce6f3c60 /src/lua/lua_util.c | |
parent | beb98631d782d976c952182c398033db5f6a8c04 (diff) | |
download | rspamd-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.c | 3 |
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; } } } |