projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d096187
)
util.pposix: setrlimit(): Add missing return on error when an incorrect number of...
author
Matthew Wild
<mwild1@gmail.com>
Fri, 28 Jun 2013 19:16:43 +0000
(20:16 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 28 Jun 2013 19:16:43 +0000
(20:16 +0100)
util-src/pposix.c
patch
|
blob
|
history
diff --git
a/util-src/pposix.c
b/util-src/pposix.c
index f5cc827032976c74c3ac624620b46aebb85c658a..e2cd142ef99c4bff536b1ea4c6856ef1a1af8946 100644
(file)
--- 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);