From c9539bca863a7d43e8edda223e4e295876ca0e85 Mon Sep 17 00:00:00 2001 From: Bruno Silvestre Date: Wed, 20 Jul 2022 17:36:27 -0300 Subject: [PATCH] Fix variable shadowing --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 0a1a92e..8358e8b 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -690,7 +690,7 @@ static int meth_exportkeyingmaterial(lua_State *L) const unsigned char *context = NULL; if(!lua_isnoneornil(L, 4)) { - const unsigned char *context = (unsigned char *)luaL_checklstring(L, 4, &contextlen); + context = (unsigned char *)luaL_checklstring(L, 4, &contextlen); } /* temporary buffer memory-managed by Lua itself */