Fix missing return

This commit is contained in:
Bruno Silvestre 2025-05-07 08:32:34 -03:00
parent 7cfb91d478
commit fff43542f9

View File

@ -366,7 +366,7 @@ static int meth_shutdown(lua_State *L) {
lua_pushnil(L);
ssl->state = LSEC_STATE_CLOSED;
return 2;
case -1:
default:
lua_pushboolean(L, 0);
ssl->error = SSL_get_error(ssl->ssl, err);
switch (ssl->error) {
@ -389,6 +389,8 @@ static int meth_shutdown(lua_State *L) {
}
return 2;
}
// unreachable
return 0;
}
/**