Loading client/client.cpp +6 −0 Changes for client/client.cpp: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -854,6 +854,12 @@ std::string Client::GPOadd(const uuid::uuid& gpoid, const std::string& name, con int fcount = json_object_array_length(jrequest); for (int i = 0; i < fcount; ++i) { json_object_object_foreach(json_object_array_get_idx(jrequest, i), key, val) { if (strcmp(key, "error") == 0) { std::string msg = json_object_get_string(val); json_object_put(jrequest); json_tokener_free(jtok); throw authdb::AuthBackendError(msg); } if (strcmp(key, "gpoadd") == 0) { json_object_object_foreach(val, gpokey, gpoval) { if (json_object_get_boolean(gpoval)) { Loading Loading
client/client.cpp +6 −0 Changes for client/client.cpp: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -854,6 +854,12 @@ std::string Client::GPOadd(const uuid::uuid& gpoid, const std::string& name, con int fcount = json_object_array_length(jrequest); for (int i = 0; i < fcount; ++i) { json_object_object_foreach(json_object_array_get_idx(jrequest, i), key, val) { if (strcmp(key, "error") == 0) { std::string msg = json_object_get_string(val); json_object_put(jrequest); json_tokener_free(jtok); throw authdb::AuthBackendError(msg); } if (strcmp(key, "gpoadd") == 0) { json_object_object_foreach(val, gpokey, gpoval) { if (json_object_get_boolean(gpoval)) { Loading