mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:03:03 +01:00
Fixed crash when no object for grant\revoke operation.
Roman, please review.
This commit is contained in:
parent
2627bcdf60
commit
d87df8cd41
@ -11084,7 +11084,7 @@ void GrantRevokeNode::grantRevoke(thread_db* tdbb, jrd_tra* transaction, const G
|
||||
MetaName user(userNod->second);
|
||||
MetaName dummyName;
|
||||
const SSHORT objType = object ? object->first : obj_type_MAX;
|
||||
const MetaName objName(object->second);
|
||||
const MetaName objName(object ? object->second : "");
|
||||
bool crdb = false;
|
||||
|
||||
char privileges[16];
|
||||
@ -11221,7 +11221,7 @@ void GrantRevokeNode::grantRevoke(thread_db* tdbb, jrd_tra* transaction, const G
|
||||
break;
|
||||
|
||||
default:
|
||||
fb_assert(false);
|
||||
fb_assert(object == NULL);
|
||||
}
|
||||
|
||||
if (options == 1) // with grant option
|
||||
|
Loading…
Reference in New Issue
Block a user