diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-06 11:23:46 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-06 11:23:46 -0800 |
commit | 66dfc33de91577012bb0e9ec22d2ef6bf18805ef (patch) | |
tree | 7eb2b8e259a296688eff07f7d1309ddeb21ddd65 /controller/EmbeddedNetworkController.cpp | |
parent | d56f740dc6cf35bd4e26c17503170d0f6c8035ec (diff) | |
download | infinitytier-66dfc33de91577012bb0e9ec22d2ef6bf18805ef.tar.gz infinitytier-66dfc33de91577012bb0e9ec22d2ef6bf18805ef.zip |
Fix circuit test post in controller.
Diffstat (limited to 'controller/EmbeddedNetworkController.cpp')
-rw-r--r-- | controller/EmbeddedNetworkController.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp index b7360220..78fa79f2 100644 --- a/controller/EmbeddedNetworkController.cpp +++ b/controller/EmbeddedNetworkController.cpp @@ -758,9 +758,11 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpPOST( std::string s = hops2[j]; test->hops[test->hopCount].addresses[test->hops[test->hopCount].breadth++] = Utils::hexStrToU64(s.c_str()) & 0xffffffffffULL; } + ++test->hopCount; } else if (hops2.is_string()) { std::string s = hops2; test->hops[test->hopCount].addresses[test->hops[test->hopCount].breadth++] = Utils::hexStrToU64(s.c_str()) & 0xffffffffffULL; + ++test->hopCount; } } } |