aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/pposix.c
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-06-28 20:16:43 +0100
committerMatthew Wild <mwild1@gmail.com>2013-06-28 20:16:43 +0100
commitaccb25e18fd305ff306ed8f2af9e535c90dca607 (patch)
tree1f68432f16ae8ea8a5c975d5a5696861a5329de9 /util-src/pposix.c
parentfdacf5cb34c305af583c1c9d1b2b36421ace1a10 (diff)
downloadprosody-accb25e18fd305ff306ed8f2af9e535c90dca607.tar.gz
prosody-accb25e18fd305ff306ed8f2af9e535c90dca607.zip
util.pposix: setrlimit(): Add missing return on error when an incorrect number of arguments are passed
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r--util-src/pposix.c1
1 files changed, 1 insertions, 0 deletions
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);