summaryrefslogtreecommitdiff
path: root/service/ControlPlane.cpp
diff options
context:
space:
mode:
authorKees Bos <k.bos@capitar.com>2015-06-11 11:49:13 +0200
committerKees Bos <k.bos@capitar.com>2015-06-11 11:49:13 +0200
commit0d0af07ce969c9dd5a416c3b9f466ab0139a57e3 (patch)
treed24fb8b919a5c03c6b01b000c508aac7956418bc /service/ControlPlane.cpp
parentde697a1c45e8afbdd32687b9b5d203732ce5e62a (diff)
downloadinfinitytier-0d0af07ce969c9dd5a416c3b9f466ab0139a57e3.tar.gz
infinitytier-0d0af07ce969c9dd5a416c3b9f466ab0139a57e3.zip
Get deletion of networks in controller going
Multiple statements in a sqlite3_prepare_v2 is not usable. Only the first statement will be executed. Since the schema now uses 'ON DELETE CASCADE', there's only one statement needed. If multiple statements are needed, there should be either multiple sqlite3_prepare_v2 calls be used or the sqlite3_exec function.
Diffstat (limited to 'service/ControlPlane.cpp')
-rw-r--r--service/ControlPlane.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/ControlPlane.cpp b/service/ControlPlane.cpp
index 71b3fd3f..3ff9b7a2 100644
--- a/service/ControlPlane.cpp
+++ b/service/ControlPlane.cpp
@@ -525,7 +525,7 @@ unsigned int ControlPlane::handleRequest(
} else {
#ifdef ZT_ENABLE_NETWORK_CONTROLLER
if (_controller)
- _controller->handleControlPlaneHttpDELETE(std::vector<std::string>(ps.begin()+1,ps.end()),urlArgs,headers,body,responseBody,responseContentType);
+ scode = _controller->handleControlPlaneHttpDELETE(std::vector<std::string>(ps.begin()+1,ps.end()),urlArgs,headers,body,responseBody,responseContentType);
else scode = 404;
#else
scode = 404;