Loading client/client.cpp +2 −22 Changes for client/client.cpp: 2 added lines, 22 removed lines. Original line number Diff line number Diff line Loading @@ -121,11 +121,8 @@ bool authdb::client::Client::ClientAuth(){ resp.push_back('\0'); json_object_put(jresponse); json_object_put(cmd); json_object_put(login); json_object_put(userauth); json_object *jrequest; json_object *jrequest=nullptr; json_tokener *jtok=json_tokener_new(); jrequest=json_tokener_parse_ex(jtok,resp.data(),resp.size()); Loading Loading @@ -278,7 +275,7 @@ void authdb::client::Client::SessionInfo(class SessionData& sdat){ throw(authdb::AuthBackendError("Invalid Api Commands")); } sdat.clear(); // Using the helper clear function sdat.clear(); int fcount = json_object_array_length(jrequest); for(int i =0; i<fcount; ++i) { Loading Loading @@ -444,10 +441,7 @@ bool authdb::client::Client::GPOcheck(class ::uuid::uuid gpoid){ resp.push_back('\0'); // FIX: Release request objects json_object_put(jresponse); json_object_put(cmd); json_object_put(obj); json_object *jrequest; json_tokener*jtok=json_tokener_new(); Loading Loading @@ -512,11 +506,7 @@ void authdb::client::Client::addConnection(const std::string &clientname,const s resp.push_back('\0'); // FIX: Release request objects json_object_put(jresponse); json_object_put(cmd); json_object_put(obj); json_object_put(addclt); } void authdb::client::Client::remConnection(const uuid::uuid& clientid){ Loading Loading @@ -548,9 +538,6 @@ void authdb::client::Client::remConnection(const uuid::uuid& clientid){ // FIX: Release request objects json_object_put(jresponse); json_object_put(cmd); json_object_put(obj); json_object_put(remclt); } void authdb::client::Client::editConnection(const uuid::uuid& clientid,const std::string &clientname,const std::string &cltsecret){ Loading Loading @@ -582,11 +569,7 @@ void authdb::client::Client::editConnection(const uuid::uuid& clientid,const std resp.push_back('\0'); // FIX: Release request objects json_object_put(jresponse); json_object_put(cmd); json_object_put(obj); json_object_put(editclt); } bool authdb::client::Client::GPOexits(class uuid::uuid gpoid){ Loading Loading @@ -616,10 +599,7 @@ bool authdb::client::Client::GPOexits(class uuid::uuid gpoid){ resp.push_back('\0'); // FIX: Release request objects json_object_put(jresponse); json_object_put(cmd); json_object_put(obj); json_object *jrequest; json_tokener*jtok=json_tokener_new(); Loading Loading
client/client.cpp +2 −22 Changes for client/client.cpp: 2 added lines, 22 removed lines. Original line number Diff line number Diff line Loading @@ -121,11 +121,8 @@ bool authdb::client::Client::ClientAuth(){ resp.push_back('\0'); json_object_put(jresponse); json_object_put(cmd); json_object_put(login); json_object_put(userauth); json_object *jrequest; json_object *jrequest=nullptr; json_tokener *jtok=json_tokener_new(); jrequest=json_tokener_parse_ex(jtok,resp.data(),resp.size()); Loading Loading @@ -278,7 +275,7 @@ void authdb::client::Client::SessionInfo(class SessionData& sdat){ throw(authdb::AuthBackendError("Invalid Api Commands")); } sdat.clear(); // Using the helper clear function sdat.clear(); int fcount = json_object_array_length(jrequest); for(int i =0; i<fcount; ++i) { Loading Loading @@ -444,10 +441,7 @@ bool authdb::client::Client::GPOcheck(class ::uuid::uuid gpoid){ resp.push_back('\0'); // FIX: Release request objects json_object_put(jresponse); json_object_put(cmd); json_object_put(obj); json_object *jrequest; json_tokener*jtok=json_tokener_new(); Loading Loading @@ -512,11 +506,7 @@ void authdb::client::Client::addConnection(const std::string &clientname,const s resp.push_back('\0'); // FIX: Release request objects json_object_put(jresponse); json_object_put(cmd); json_object_put(obj); json_object_put(addclt); } void authdb::client::Client::remConnection(const uuid::uuid& clientid){ Loading Loading @@ -548,9 +538,6 @@ void authdb::client::Client::remConnection(const uuid::uuid& clientid){ // FIX: Release request objects json_object_put(jresponse); json_object_put(cmd); json_object_put(obj); json_object_put(remclt); } void authdb::client::Client::editConnection(const uuid::uuid& clientid,const std::string &clientname,const std::string &cltsecret){ Loading Loading @@ -582,11 +569,7 @@ void authdb::client::Client::editConnection(const uuid::uuid& clientid,const std resp.push_back('\0'); // FIX: Release request objects json_object_put(jresponse); json_object_put(cmd); json_object_put(obj); json_object_put(editclt); } bool authdb::client::Client::GPOexits(class uuid::uuid gpoid){ Loading Loading @@ -616,10 +599,7 @@ bool authdb::client::Client::GPOexits(class uuid::uuid gpoid){ resp.push_back('\0'); // FIX: Release request objects json_object_put(jresponse); json_object_put(cmd); json_object_put(obj); json_object *jrequest; json_tokener*jtok=json_tokener_new(); Loading