aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar William Ahern <william@25thandclement.com> 2016-11-23 17:11:42 -0800
committerLibravatarLibravatar William Ahern <william@25thandclement.com> 2016-11-23 17:11:42 -0800
commit331ff8253f0fde3aaa9e47aa801613e35e6afcf7 (patch)
treed64d4f23e5b7c959b18f897516821fea18e6ff6a
parent612c4ca3033268d70e6aee16d72e721e91f7e87a (diff)
downloadluaossl-331ff8253f0fde3aaa9e47aa801613e35e6afcf7.tar.gz
luaossl-331ff8253f0fde3aaa9e47aa801613e35e6afcf7.tar.bz2
luaossl-331ff8253f0fde3aaa9e47aa801613e35e6afcf7.zip
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
-rw-r--r--src/openssl.c2
1 files changed, 0 insertions, 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;
}