From 48e4dae72758628d325bfdbeabae908b59ecba1f Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 13 Aug 2013 08:41:17 +0000 Subject: [PATCH] fhem.pl: more checks when inserting duplicates. git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3682 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem.pl b/fhem.pl index 71cc66bfa..916033441 100755 --- a/fhem.pl +++ b/fhem.pl @@ -2696,7 +2696,7 @@ Dispatch($$$) next if($dmsg !~ m/$modules{$m}{Match}/i); if( my $ffn = $modules{$m}{FingerprintFn} ) { - (my $isdup, $idx) = CheckDuplicate($name, $dmsg, $ffn); + ($isdup, $idx) = CheckDuplicate($name, $dmsg, $ffn); return rejectDuplicate($name,$idx,$addvals) if($isdup); } @@ -2780,7 +2780,8 @@ Dispatch($$$) } } - $duplicate{$idx}{FND} = \@found; + $duplicate{$idx}{FND} = \@found + if(defined($idx) && defined($duplicate{$idx})); return \@found; }