From: Y7n05h Date: Mon, 4 Apr 2022 13:41:09 +0000 (+0800) Subject: Update pdns/dnsdist-lua.cc X-Git-Tag: rec-4.7.0-beta1~14^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b0c0aaccce24a177bd92f62e7ed9b4ff5fd37fa;p=thirdparty%2Fpdns.git Update pdns/dnsdist-lua.cc Co-authored-by: Remi Gacogne --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index a08b6d4ae3..2f8d858c9b 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -1993,7 +1993,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) luaCtx.writeFunction("setTCPFastOpenKey", [](const std::string& keyString) { setLuaSideEffect(); uint32_t key[4] = {}; - auto ret = sscanf(keyString.c_str(), "%" SCNx32 "%" SCNx32 "%" SCNx32 "%" SCNx32, &key[0], &key[1], &key[2], &key[3]); + auto ret = sscanf(keyString.c_str(), "%" SCNx32 "-%" SCNx32 "-%" SCNx32 "-%" SCNx32, &key[0], &key[1], &key[2], &key[3]); if (ret != 4) { g_outputBuffer = "Invalid value passed to setTCPFastOpenKey()!\n"; return;