diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-17 13:54:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-17 13:54:55 +0000 |
commit | 8e83bc2d1076daeb0de350b3fff6551054488efe (patch) | |
tree | 5d971fb83104d84365030b3e1895bc785d5e0c5b /src/lua | |
parent | b07563f21324253b5e4aa6f1531f98a0f313d59c (diff) | |
download | rspamd-8e83bc2d1076daeb0de350b3fff6551054488efe.tar.gz rspamd-8e83bc2d1076daeb0de350b3fff6551054488efe.zip |
[Minor] Core: Store raw bondary in multipart node
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_mimepart.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c index 56fc0d302..340da7aa2 100644 --- a/src/lua/lua_mimepart.c +++ b/src/lua/lua_mimepart.c @@ -1595,13 +1595,13 @@ lua_mimepart_get_children (lua_State * L) return luaL_error (L, "invalid arguments"); } - if (!IS_CT_MULTIPART (part->ct) || part->specific.mp.children == NULL) { + if (!IS_CT_MULTIPART (part->ct) || part->specific.mp->children == NULL) { lua_pushnil (L); } else { - lua_createtable (L, part->specific.mp.children->len, 0); + lua_createtable (L, part->specific.mp->children->len, 0); - PTR_ARRAY_FOREACH (part->specific.mp.children, i, cur) { + PTR_ARRAY_FOREACH (part->specific.mp->children, i, cur) { pcur = lua_newuserdata (L, sizeof (*pcur)); *pcur = cur; rspamd_lua_setclass (L, "rspamd{mimepart}", -1); |