From b5073560912780ab3eaabd6d72e5e6bc5ca3dd3d Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 4 Oct 2024 18:21:24 +0000 Subject: [PATCH] Fix typoed index in latest libssh2 publickey change --- nse_libssh2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nse_libssh2.cc b/nse_libssh2.cc index e95ef1d90..10e960968 100644 --- a/nse_libssh2.cc +++ b/nse_libssh2.cc @@ -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) {