mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
WMBus: fix for bug causing 'encryption failed' on unencrypted messages
git-svn-id: https://svn.fhem.de/fhem/trunk@19247 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7b0d05579f
commit
eab7bf4aca
@ -2008,8 +2008,7 @@ sub decodeApplicationLayer($) {
|
||||
$self->{encryptionMode} = $encryptionModes{$self->{cw_parts}{mode}};
|
||||
if ($self->{cw_parts}{mode} == 0) {
|
||||
# no encryption
|
||||
if (!defined $self->{isEncrypted}) {
|
||||
$self->{isEncrypted} = 0;
|
||||
if (!$self->{isEncrypted}) {
|
||||
$self->{decrypted} = 1;
|
||||
}
|
||||
$payload = substr($applicationlayer, $offset);
|
||||
|
Loading…
x
Reference in New Issue
Block a user