From 331ff8253f0fde3aaa9e47aa801613e35e6afcf7 Mon Sep 17 00:00:00 2001 From: William Ahern Date: Wed, 23 Nov 2016 17:11:42 -0800 Subject: negative indices don't make sense for luaL_opt interfaces and don't work properly, so no need to try to handle that case in our wrapper code --- src/openssl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/openssl.c b/src/openssl.c index e5b55ca..1803ebd 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -1167,11 +1167,9 @@ static const EVP_MD *auxL_optdigest(lua_State *L, int index, EVP_PKEY *key, cons return md; if (name) { - index = lua_absindex(L, index); luaL_argerror(L, index, lua_pushfstring(L, "invalid digest type (%s)", name)); NOTREACHED; } else if (key) { - index = lua_absindex(L, index); luaL_argerror(L, index, lua_pushfstring(L, "no digest type for key type (%d)", EVP_PKEY_base_id(key))); NOTREACHED; } -- cgit v1.2.3-59-g8ed1b