summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLV2ProtocolMessage.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLV2ProtocolMessage.m')
-rw-r--r--SmartDeviceLink/SDLV2ProtocolMessage.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLV2ProtocolMessage.m b/SmartDeviceLink/SDLV2ProtocolMessage.m
index 0760d45c7..54c4675d8 100644
--- a/SmartDeviceLink/SDLV2ProtocolMessage.m
+++ b/SmartDeviceLink/SDLV2ProtocolMessage.m
@@ -15,6 +15,8 @@ NS_ASSUME_NONNULL_BEGIN
if (self = [self init]) {
self.header = header;
self.payload = payload;
+
+ self.header.bytesInPayload = (UInt32)self.payload.length;
}
return self;
}