diff --git a/src/host/ClusterPool.cc b/src/host/ClusterPool.cc index c6005c50b4..d2d1b7da00 100644 --- a/src/host/ClusterPool.cc +++ b/src/host/ClusterPool.cc @@ -58,7 +58,8 @@ int ClusterPool::allocate(int * clid, string name, SqlDB *db) error_existing_name: error_db: error_common: - return -1; + *clid = -1; + return *clid; } /* -------------------------------------------------------------------------- */