File tree Expand file tree Collapse file tree
base/src/main/java/com/smartdevicelink/session Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -222,12 +222,16 @@ protected void processControlService(ProtocolMessage msg) {
222222 return ;
223223 }
224224
225- if (receivedHeader .getQueryID () != SecurityQueryID .SEND_HANDSHAKE_DATA
226- || !(receivedHeader .getQueryType () == SecurityQueryType .REQUEST || receivedHeader .getQueryType () == SecurityQueryType .NOTIFICATION )) {
225+ if (receivedHeader .getQueryID () != SecurityQueryID .SEND_HANDSHAKE_DATA ) {
227226 DebugTool .logError (TAG , "Security Query module error: Message is not a SEND_HANDSHAKE_DATA REQUEST" );
228227 return ;
229228 }
230229
230+ if (receivedHeader .getQueryType () == SecurityQueryType .RESPONSE ) {
231+ DebugTool .logError (TAG , "Security Query module error: Message is a response, which is not supported" );
232+ return ;
233+ }
234+
231235 iNumBytes = sdlSecurity .runHandshake (data , dataToRead );
232236
233237 // Assemble a security query payload header for our response
You can’t perform that action at this time.
0 commit comments