From f9850e766787d46bcae874fd4302cab0f0244e03 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 15 Oct 2020 12:04:35 -0500 Subject: hscript: PPPoE: Ensure values are read properly --- hscript/network.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hscript/network.cc') diff --git a/hscript/network.cc b/hscript/network.cc index 5808730..17fd0ea 100644 --- a/hscript/network.cc +++ b/hscript/network.cc @@ -407,7 +407,7 @@ Key *PPPoE::parseFromData(const std::string &data, const ScriptLocation &pos, if(next == std::string::npos) { val = data.substr(equals + 1); } else { - val = data.substr(equals + 1, next - equals); + val = data.substr(equals + 1, next - equals - 1); } } else { if(next == std::string::npos) { -- cgit v1.2.3-70-g09d2