diff options
author | William Ahern <william+macosx@25thandclement.com> | 2016-01-14 18:30:30 -0800 |
---|---|---|
committer | William Ahern <william+macosx@25thandclement.com> | 2016-01-14 18:30:30 -0800 |
commit | 8d0e1581ce8642f692a64a0e35d60d1c6e6e59eb (patch) | |
tree | d80f74fdbeb13f7b2c6a599b3936642c9241760e | |
parent | 49d0192120c6e3485efd10725ea851b538222e6b (diff) | |
download | luaossl-8d0e1581ce8642f692a64a0e35d60d1c6e6e59eb.tar.gz luaossl-8d0e1581ce8642f692a64a0e35d60d1c6e6e59eb.tar.bz2 luaossl-8d0e1581ce8642f692a64a0e35d60d1c6e6e59eb.zip |
Lua 5.1 doesn't permit NULL msg argument to luaL_checkstack
-rw-r--r-- | src/openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openssl.c b/src/openssl.c index 4eba534..f0c5684 100644 --- a/src/openssl.c +++ b/src/openssl.c | |||
@@ -3202,7 +3202,7 @@ static int pk_getParameters(lua_State *L) { | |||
3202 | * Subsequent parameters will be assigned as fields. | 3202 | * Subsequent parameters will be assigned as fields. |
3203 | */ | 3203 | */ |
3204 | lua_pushstring(L, "{"); | 3204 | lua_pushstring(L, "{"); |
3205 | luaL_checkstack(L, nopts, NULL); | 3205 | luaL_checkstack(L, nopts, "too many arguments"); |
3206 | for (const char *const *optname = optlist; *optname; optname++) { | 3206 | for (const char *const *optname = optlist; *optname; optname++) { |
3207 | lua_pushstring(L, *optname); | 3207 | lua_pushstring(L, *optname); |
3208 | } | 3208 | } |
@@ -3211,7 +3211,7 @@ static int pk_getParameters(lua_State *L) { | |||
3211 | otop = lua_gettop(L); | 3211 | otop = lua_gettop(L); |
3212 | 3212 | ||
3213 | /* provide space for results and working area */ | 3213 | /* provide space for results and working area */ |
3214 | luaL_checkstack(L, (otop - 1) + LUA_MINSTACK, NULL); | 3214 | luaL_checkstack(L, (otop - 1) + LUA_MINSTACK, "too many arguments"); |
3215 | 3215 | ||
3216 | /* no table index, yet */ | 3216 | /* no table index, yet */ |
3217 | tindex = 0; | 3217 | tindex = 0; |