mirror of
https://github.com/Fishwaldo/open-zwave.git
synced 2025-03-15 11:31:40 +00:00
Check if packet is actually device data before checking security (#1973)
This commit is contained in:
parent
d0e48bf554
commit
0f5ab765e6
1 changed files with 1 additions and 1 deletions
|
@ -1775,7 +1775,7 @@ void Driver::ProcessMsg(uint8* _data, uint8 _length)
|
|||
bool wasencrypted = false;
|
||||
//uint8 nodeId = GetNodeNumber( m_currentMsg );
|
||||
|
||||
if ((REQUEST == _data[0]) && (Internal::CC::Security::StaticGetCommandClassId() == _data[5]))
|
||||
if ((REQUEST == _data[0]) && FUNC_ID_APPLICATION_COMMAND_HANDLER == _data[1] && (Internal::CC::Security::StaticGetCommandClassId() == _data[5]))
|
||||
{
|
||||
/* if this message is a NONCE Report - Then just Trigger the Encrypted Send */
|
||||
if (Internal::CC::SecurityCmd_NonceReport == _data[6])
|
||||
|
|
Loading…
Add table
Reference in a new issue