summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SmartDeviceLink/private/SDLProtocol.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/private/SDLProtocol.m b/SmartDeviceLink/private/SDLProtocol.m
index 348543801..46ec8f865 100644
--- a/SmartDeviceLink/private/SDLProtocol.m
+++ b/SmartDeviceLink/private/SDLProtocol.m
@@ -416,7 +416,7 @@ NS_ASSUME_NONNULL_BEGIN
header.sessionID = [self sdl_retrieveSessionIDforServiceType:service];
header.messageID = ++_messageID;
- if (encryption && data.length) {
+ if (encryption && data.length && data.length > 0) {
NSError *encryptError = nil;
data = [self.securityManager encryptData:data withError:&encryptError];