From ff7fdf02b35b56f865ff57d542dbb2d87baad180 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 25 Sep 2016 06:51:12 +0000 Subject: [PATCH] 10_ZWave.pm: security patch from Andreas (Forum #57822) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12208 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_ZWave.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/FHEM/10_ZWave.pm b/FHEM/10_ZWave.pm index b9729f8ca..2373230e9 100755 --- a/FHEM/10_ZWave.pm +++ b/FHEM/10_ZWave.pm @@ -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";