From 4c08eea8bc1cc0d2f264855c4f350848e6a3d63c Mon Sep 17 00:00:00 2001 From: s0ph0s Date: Wed, 28 Feb 2024 23:47:52 -0500 Subject: [PATCH] documentation touch-ups --- tool/net/redbean.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/net/redbean.c b/tool/net/redbean.c index f122a86be..d0b36d67e 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -5179,13 +5179,13 @@ int LuaCryptoTlsConnectionWrite(lua_State *L) { size_t size; const char *data; data = luaL_checklstring(L, 2, &size); - return TlsConnectionWrite(GetTlsConnection(L), data, size); + lua_pushinteger(L, TlsConnectionWrite(GetTlsConnection(L), data, size)); + return 1; } int LuaCryptoTlsConnectionClose(lua_State *L) { TlsConnectionClose(GetTlsConnection(L)); - lua_pop(L, 1); - return 1; + return 0; } static int LuaCryptoTlsConnectionTostring(lua_State *L) {