]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Disable zero-copy mode for b64 ops as it is broken
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 19 Dec 2016 21:23:28 +0000 (21:23 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 19 Dec 2016 21:23:28 +0000 (21:23 +0000)
src/lua/lua_util.c

index 3a12731c58403768afc82d1b7c8ebbdc9d95f3ce..aa92fe0b4b58455a9753076ffae2e6690544a0ec 100644 (file)
@@ -688,12 +688,6 @@ lua_util_decode_base64 (lua_State *L)
                if (t != NULL) {
                        s = t->start;
                        inlen = t->len;
-
-                       if (t->flags & RSPAMD_TEXT_FLAG_OWN) {
-                               t->flags = 0;
-                               grab_own = TRUE;
-                               zero_copy = TRUE;
-                       }
                }
        }