From accb25e18fd305ff306ed8f2af9e535c90dca607 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 28 Jun 2013 20:16:43 +0100 Subject: util.pposix: setrlimit(): Add missing return on error when an incorrect number of arguments are passed --- util-src/pposix.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util-src') diff --git a/util-src/pposix.c b/util-src/pposix.c index f5cc8270..e2cd142e 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -500,6 +500,7 @@ int lc_setrlimit(lua_State *L) { if(arguments < 1 || arguments > 3) { lua_pushboolean(L, 0); lua_pushstring(L, "incorrect-arguments"); + return 2; } resource = luaL_checkstring(L, 1); -- cgit v1.2.3