Skip to content

Commit

Permalink
Fixed CORE-2840: Engine crashes if the NULL attachment handle is pass…
Browse files Browse the repository at this point in the history
…ed from the Y-valve.
  • Loading branch information
dyemanov committed Feb 2, 2010
1 parent 7f6107c commit 2cc6811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jrd/jrd.cpp
Expand Up @@ -175,7 +175,7 @@ namespace

inline void validateHandle(thread_db* tdbb, Jrd::Attachment* const attachment)
{
if (attachment == tdbb->getAttachment())
if (attachment && attachment == tdbb->getAttachment())
return;

if (!attachment->checkHandle() || !attachment->att_database->checkHandle())
Expand Down

0 comments on commit 2cc6811

Please sign in to comment.