Loading src/admin.cpp +3 −4 Changes for src/admin.cpp: 3 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -765,11 +765,11 @@ namespace authdb { curformdat->Value.push_back('\0'); dodat.datasize=sizeof(int); dodat.data=(char*)new int; dodat.data=reinterpret_cast<char*>(new int); int val=atoi(curformdat->Value.data()); std::copy(&val,&val+sizeof(int),dodat.data); memcpy(dodat.data,&val,sizeof(int)); ddat.append(dodat); delete (int*)dodat.data; delete dodat.data; }else { dodat.datasize=curformdat->Value.size(); dodat.data=new char[dodat.datasize]; Loading Loading @@ -1801,7 +1801,6 @@ namespace authdb { if(sscanf(curreq->getRequestURL().c_str(),"/settings/%[^/]/listgpos",cdid)<0){ throw AuthBackendError("removeSession: wrong url!"); } uuid_parse(cdid,did); DomainBackend dbackend(_AdminBackend); Loading Loading
src/admin.cpp +3 −4 Changes for src/admin.cpp: 3 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -765,11 +765,11 @@ namespace authdb { curformdat->Value.push_back('\0'); dodat.datasize=sizeof(int); dodat.data=(char*)new int; dodat.data=reinterpret_cast<char*>(new int); int val=atoi(curformdat->Value.data()); std::copy(&val,&val+sizeof(int),dodat.data); memcpy(dodat.data,&val,sizeof(int)); ddat.append(dodat); delete (int*)dodat.data; delete dodat.data; }else { dodat.datasize=curformdat->Value.size(); dodat.data=new char[dodat.datasize]; Loading Loading @@ -1801,7 +1801,6 @@ namespace authdb { if(sscanf(curreq->getRequestURL().c_str(),"/settings/%[^/]/listgpos",cdid)<0){ throw AuthBackendError("removeSession: wrong url!"); } uuid_parse(cdid,did); DomainBackend dbackend(_AdminBackend); Loading