diff options
author | William Ahern <william@25thandclement.com> | 2016-11-23 17:11:42 -0800 |
---|---|---|
committer | William Ahern <william@25thandclement.com> | 2016-11-23 17:11:42 -0800 |
commit | 331ff8253f0fde3aaa9e47aa801613e35e6afcf7 (patch) | |
tree | d64d4f23e5b7c959b18f897516821fea18e6ff6a /src | |
parent | 612c4ca3033268d70e6aee16d72e721e91f7e87a (diff) | |
download | luaossl-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
Diffstat (limited to '')
-rw-r--r-- | src/openssl.c | 2 |
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 | |||
1167 | return md; | 1167 | return md; |
1168 | 1168 | ||
1169 | if (name) { | 1169 | if (name) { |
1170 | index = lua_absindex(L, index); | ||
1171 | luaL_argerror(L, index, lua_pushfstring(L, "invalid digest type (%s)", name)); | 1170 | luaL_argerror(L, index, lua_pushfstring(L, "invalid digest type (%s)", name)); |
1172 | NOTREACHED; | 1171 | NOTREACHED; |
1173 | } else if (key) { | 1172 | } else if (key) { |
1174 | index = lua_absindex(L, index); | ||
1175 | luaL_argerror(L, index, lua_pushfstring(L, "no digest type for key type (%d)", EVP_PKEY_base_id(key))); | 1173 | luaL_argerror(L, index, lua_pushfstring(L, "no digest type for key type (%d)", EVP_PKEY_base_id(key))); |
1176 | NOTREACHED; | 1174 | NOTREACHED; |
1177 | } | 1175 | } |