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

Fixed AV in LM after remapping of shared memory

This commit is contained in:
hvlad 2012-07-14 21:26:14 +00:00
parent daea4c4b61
commit ea123ce328

View File

@ -499,7 +499,7 @@ SRQ_PTR LockManager::enqueue(Attachment* attachment,
LockTableGuard guard(this, owner_offset); LockTableGuard guard(this, owner_offset);
own* const owner = (own*) SRQ_ABS_PTR(owner_offset); own* owner = (own*) SRQ_ABS_PTR(owner_offset);
if (!owner->own_count) if (!owner->own_count)
return 0; return 0;
@ -525,6 +525,7 @@ SRQ_PTR LockManager::enqueue(Attachment* attachment,
{ {
return 0; return 0;
} }
owner = (own*) SRQ_ABS_PTR(owner_offset);
} }
else else
{ {