diff options
| -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 | } |
