summaryrefslogtreecommitdiff
path: root/hscript/network.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-10-15 12:04:35 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-10-15 12:04:35 -0500
commitf9850e766787d46bcae874fd4302cab0f0244e03 (patch)
treeb90d236f50549c9c76a6b524422edf6db2fe1115 /hscript/network.cc
parent3658104dcc622e69a64cf97fbc9ed477f3faed6c (diff)
downloadhorizon-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/network.cc')
-rw-r--r--hscript/network.cc2
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) {