From: Vladimír Čunát Date: Tue, 31 Jan 2017 16:28:54 +0000 (+0100) Subject: daemon TTY: don't skip lua_settop in binary mode X-Git-Tag: v1.3.0~23^2~86^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcaa9ac0f8247367d619546488e58ae0d86da925;p=thirdparty%2Fknot-resolver.git daemon TTY: don't skip lua_settop in binary mode This might help if the lua command returns an unexpected number of arguments. --- diff --git a/daemon/main.c b/daemon/main.c index 8e66348f6..f3094c36a 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -130,6 +130,7 @@ static void tty_process_input(uv_stream_t *stream, ssize_t nread, const uv_buf_t uint32_t len_n = htonl(len_s); fwrite(&len_n, sizeof(len_n), 1, out); fwrite(message, len_s, 1, out); + lua_settop(L, 0); goto finish; }