Commit 918fac98 authored by jan.koester's avatar jan.koester
Browse files

fixed session.cpp

parent 3b03bad6
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for src/session.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ const authdb::SessionData * authdb::Session::addSession(AuthBackend &backend,uui
        if(cur.type == UserData && strcmp(cur.fieldname,"username")==0
            && uuid_compare(cur.uuid,userid)==0){

            std::shared_ptr<unsigned char> tmp(new unsigned char[cur.datasize]);
            std::shared_ptr<unsigned char[]> tmp(new unsigned char[cur.datasize]);
            backend.read(tmp.get(),cur.datasize);
            username=reinterpret_cast<char*>(tmp.get());
        }