diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-10-15 12:04:35 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-10-15 12:04:35 -0500 |
commit | f9850e766787d46bcae874fd4302cab0f0244e03 (patch) | |
tree | b90d236f50549c9c76a6b524422edf6db2fe1115 /hscript | |
parent | 3658104dcc622e69a64cf97fbc9ed477f3faed6c (diff) | |
download | horizon-f9850e766787d46bcae874fd4302cab0f0244e03.tar.gz horizon-f9850e766787d46bcae874fd4302cab0f0244e03.tar.bz2 horizon-f9850e766787d46bcae874fd4302cab0f0244e03.tar.xz horizon-f9850e766787d46bcae874fd4302cab0f0244e03.zip |
hscript: PPPoE: Ensure values are read properly
Diffstat (limited to 'hscript')
-rw-r--r-- | hscript/network.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |