mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
linux error
This commit is contained in:
parent
5c06bcb617
commit
762479fe33
@ -408,7 +408,7 @@ User::User(Poco::AutoPtr<controller::User> ctrl_user)
|
||||
//char* hexString = (char*)malloc(hexSize);
|
||||
memset(*hexStringTemp, 0, hexSize);
|
||||
sodium_bin2hex((char*)(*hexStringTemp), hexSize, pubkey, crypto_sign_PUBLICKEYBYTES);
|
||||
mPublicHex = *hexStringTemp;
|
||||
mPublicHex = std::string((char*)(*hexStringTemp));
|
||||
mm->releaseMemory(hexStringTemp);
|
||||
}
|
||||
if (model->existPrivateKeyCrypted()) {
|
||||
|
||||
@ -84,7 +84,8 @@ namespace model {
|
||||
return false;
|
||||
}
|
||||
auto cm = ConnectionManager::getInstance();
|
||||
Poco::Data::Statement deleteStmt(cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER));
|
||||
auto session = cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER);
|
||||
Poco::Data::Statement deleteStmt(session);
|
||||
deleteStmt << "delete from " << getTableName() << " where id = ?", Poco::Data::Keywords::use(mID);
|
||||
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user