Skip to content

Commit

Permalink
Merge pull request #2055 from smartdevicelink/bugfix/issue-2054-addit…
Browse files Browse the repository at this point in the history
…ional-check-when-processing-control-messages

Additional check added when processing control messages
  • Loading branch information
joeljfischer authored Oct 25, 2021
2 parents 53e43be + de4c6e0 commit 805edd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SmartDeviceLink/private/SDLProtocol.m
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ - (void)sdl_processSecurityMessage:(SDLProtocolMessage *)clientHandshakeMessage

// If the handshake went bad and the security library ain't happy, send over the failure to the module. This should result in an ACK with encryption off.
SDLProtocolMessage *serverSecurityMessage = nil;
if (serverHandshakeData == nil) {
if (serverHandshakeData.length == 0) {
SDLLogE(@"Error running TLS handshake procedure. Sending error to module. Error: %@", handshakeError);

serverSecurityMessage = [self.class sdl_serverSecurityFailedMessageWithClientMessageHeader:clientHandshakeMessage.header messageId:++_messageID];
Expand Down

0 comments on commit 805edd7

Please # to comment.