mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 17:36:39 +00:00
10_ZWave.pm: security patch from Andreas (Forum #57822)
git-svn-id: https://svn.fhem.de/fhem/trunk@12208 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a648449751
commit
64969e6ed4
@ -3842,6 +3842,18 @@ ZWave_processSendStack($$;$)
|
||||
}
|
||||
#Log 1, "pSS: $hash->{NAME}, $ackType $ss->[0]".($omsg ? " omsg:$omsg" : "");
|
||||
|
||||
if ($ackType eq "next") {
|
||||
if($ss->[0] =~ m/^sent(.*?):13....98(.*)$/) { # only for security commands
|
||||
my $secMsg = $hash->{secMsg};
|
||||
if ($secMsg && @{$secMsg}) {
|
||||
Log3 $hash->{NAME}, 1, "$hash->{NAME}: NO_ACK received during secured "
|
||||
."command: $secMsg->[0], command will be removed from security stack";
|
||||
shift(@{$secMsg});
|
||||
ZWave_secEnd($hash);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($ackType eq "retry") {
|
||||
$ss->[0] =~ m/^(.*)(set|get):(.*)$/;
|
||||
$ss->[0] = "$2:$3";
|
||||
|
Loading…
x
Reference in New Issue
Block a user