]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2270] DHCPv6 pool parser fix.
authorTomek Mrugalski <tomasz@isc.org>
Fri, 12 Oct 2012 11:53:10 +0000 (13:53 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Fri, 12 Oct 2012 11:53:10 +0000 (13:53 +0200)
src/bin/dhcp6/config_parser.cc

index dbffc408636a22b560845b2ac99710c59b42e011..91310f0d00d5b774f9c57ae647f6a4c43e9422dd 100644 (file)
@@ -399,7 +399,7 @@ public:
             pos = txt.find("-");
             if (pos != string::npos) {
                 // using min-max notation
-                IOAddress min(txt.substr(0,pos - 1));
+                IOAddress min(txt.substr(0,pos));
                 IOAddress max(txt.substr(pos + 1));
 
                 Pool6Ptr pool(new Pool6(Pool6::TYPE_IA, min, max));