]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lua/dlua-iostream: Remove unnecessary stream state assertion
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Wed, 21 May 2025 10:09:29 +0000 (12:09 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 22 May 2025 11:24:01 +0000 (11:24 +0000)
src/lib-lua/dlua-iostream.c

index 2b1bb2caa1b4e3d156a31e931f474391369671d2..14803f0cd395e6cec25057a0a544f663b77f8b58 100644 (file)
@@ -351,7 +351,6 @@ int dlua_push_istream(struct dlua_script *script, struct istream *is) {
        luaL_setmetatable(script->L, DOVECOT_FILEHANDLE);
        stream->stream.f = NULL;
        stream->stream.closef = dlua_io_close;
-       i_assert(!is->closed);
        i_stream_ref(is);
        stream->is = is;
        stream->input = TRUE;
@@ -365,7 +364,6 @@ int dlua_push_ostream(struct dlua_script *script, struct ostream *os) {
        luaL_setmetatable(script->L, DOVECOT_FILEHANDLE);
        stream->stream.f = NULL;
        stream->stream.closef = dlua_io_close;
-       i_assert(!os->closed);
        o_stream_ref(os);
        stream->os = os;