Skip to content

Commit 3356526

Browse files
Added extra null check for null metadata in SubsciberConnection for use case when (a) DataPublisher provides no metadata, and (b) DataSubscriber provides metadata filters.
1 parent d82dc94 commit 3356526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/transport/SubscriberConnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ void SubscriberConnection::HandleMetadataRefresh(uint8_t* data, uint32_t length)
920920

921921
// Note that these client provided meta-data filter expressions are applied only to the
922922
// in-memory DataSet and therefore are not subject to SQL injection attacks
923-
if (length > 4)
923+
if (length > 4 && m_parent->m_metadata != nullptr)
924924
{
925925
const uint32_t responseLength = EndianConverter::ToBigEndian<uint32_t>(data, index);
926926
index += 4;

0 commit comments

Comments
 (0)