summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatbir Tanda <satbirtanda@gmail.com>2019-09-05 17:33:26 -0700
committerSatbir Tanda <satbirtanda@gmail.com>2019-09-05 17:33:26 -0700
commit915b87ad7519eea4d0eb49a02097a2621c9311bc (patch)
tree5e6be90493c61b9be21371f830d7510b51fdeea8
parentbd44d93a1c56be2be578a19aa1ca3ebee49781a5 (diff)
downloadsdl_ios-915b87ad7519eea4d0eb49a02097a2621c9311bc.tar.gz
Update SDLProtocolMessage.m
-rw-r--r--SmartDeviceLink/SDLProtocolMessage.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLProtocolMessage.m b/SmartDeviceLink/SDLProtocolMessage.m
index 81fc23e82..eddd2288e 100644
--- a/SmartDeviceLink/SDLProtocolMessage.m
+++ b/SmartDeviceLink/SDLProtocolMessage.m
@@ -50,6 +50,10 @@ NS_ASSUME_NONNULL_BEGIN
}
- (NSString *)description {
+ if (_header.encrypted) {
+ return @"Encrypted header, description overflows";
+ }
+
// Print the header data.
NSMutableString *description = [[NSMutableString alloc] init];
[description appendString:self.header.description];