Skip to content

Commit 7712fce

Browse files
committed
Fixed bug #8649 : AV when ON CONNECT triggers uses EXECUTE STATEMENT ON EXTERNAL
1 parent 31b87ab commit 7712fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jrd/extds/ExtDS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Connection* Manager::getConnection(thread_db* tdbb, const string& dataSource,
231231
CryptHash ch(att->att_crypt_callback);
232232
hash = DefaultHash<UCHAR>::hash(dbName.c_str(), dbName.length(), MAX_ULONG) +
233233
DefaultHash<UCHAR>::hash(dpb.getBuffer(), dpb.getBufferLength(), MAX_ULONG) +
234-
DefaultHash<UCHAR>::hash(ch.getValue(), ch.getLength(), MAX_ULONG);
234+
(ch.isValid() ? DefaultHash<UCHAR>::hash(ch.getValue(), ch.getLength(), MAX_ULONG) : 0);
235235

236236
while (true)
237237
{

0 commit comments

Comments
 (0)