1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix typoed index in latest libssh2 publickey change

This commit is contained in:
dmiller
2024-10-04 18:21:24 +00:00
parent 79b35dcb04
commit b507356091

View File

@@ -524,7 +524,7 @@ static void validate_publickey_params(lua_State *L, struct publickey_ctx *ctx) {
ctx->privkey = luaL_checklstring(L, 3, &ctx->privkey_len);
ctx->passphrase = lua_isstring(L, 4) ? lua_tostring(L, 4) : NULL;
ctx->pubkey = lua_isstring(L, 4) ? lua_tolstring(L, 4, &ctx->pubkey_len) : NULL;
ctx->pubkey = lua_isstring(L, 5) ? lua_tolstring(L, 5, &ctx->pubkey_len) : NULL;
}
static int userauth_publickey (lua_State *L, int status, lua_KContext ctx) {