summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/openssl.c4
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;