From 0dfe5567f0c248183648117e9784da7b17683a72 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/pposix.c') 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