Skip to content

Commit e61ce31

Browse files
committed
setting size value for data bytes
1 parent 87bbf8b commit e61ce31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dds.net-connector-cpp.lib/connector/src/internal/src/packet_preprocessor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ BufferAddress
193193
previousDataStartIndex = index;
194194

195195
dataLock.unlock();
196+
197+
size = dataBytes;
196198
return packet;
197199
}
198200
}
@@ -206,6 +208,8 @@ BufferAddress
206208
previousDataStartIndex = bufferStartIndex;
207209

208210
dataLock.unlock();
211+
212+
size = 0;
209213
return nullptr;
210214
}
211215

0 commit comments

Comments
 (0)