8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 03:23:04 +01:00

Restore the old code to avoid returning temporary to the caller

This commit is contained in:
Dmitry Yemanov 2021-10-12 18:46:41 +03:00
parent 8b485a455c
commit f24ea57c36

View File

@ -47,12 +47,12 @@ namespace
// ILogonInfo implementation // ILogonInfo implementation
const char* name() const char* name()
{ {
return att->getUserName().c_str(); return att->att_user ? att->att_user->getUserName().c_str() : "";
} }
const char* role() const char* role()
{ {
return att->getSqlRole().c_str(); return att->att_user ? att->att_user->getSqlRole().c_str() : "";
} }
const char* networkProtocol() const char* networkProtocol()