浏览代码

Fix circuit test post in controller.

Adam Ierymenko 8 年之前
父节点
当前提交
66dfc33de9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      controller/EmbeddedNetworkController.cpp

+ 2 - 0
controller/EmbeddedNetworkController.cpp

@@ -758,9 +758,11 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpPOST(
 									std::string s = hops2[j];
 									std::string s = hops2[j];
 									test->hops[test->hopCount].addresses[test->hops[test->hopCount].breadth++] = Utils::hexStrToU64(s.c_str()) & 0xffffffffffULL;
 									test->hops[test->hopCount].addresses[test->hops[test->hopCount].breadth++] = Utils::hexStrToU64(s.c_str()) & 0xffffffffffULL;
 								}
 								}
+								++test->hopCount;
 							} else if (hops2.is_string()) {
 							} else if (hops2.is_string()) {
 								std::string s = hops2;
 								std::string s = hops2;
 								test->hops[test->hopCount].addresses[test->hops[test->hopCount].breadth++] = Utils::hexStrToU64(s.c_str()) & 0xffffffffffULL;
 								test->hops[test->hopCount].addresses[test->hops[test->hopCount].breadth++] = Utils::hexStrToU64(s.c_str()) & 0xffffffffffULL;
+								++test->hopCount;
 							}
 							}
 						}
 						}
 					}
 					}