mnwclient in loop consumes all memory
Brought to you by:
wagnerch
Most likely due to a bug in Perl, the recursive call of isfiltered in
isfiltered causes a loop and consumes after some time all
memory.
Although the parameter of isfiltered is changing, the test in the
old code below is always true. The given change solves the
problem.
Old code part:
if (&maskaddress($Filter->getIpAddress,
$Filter->getNetmask) ==
$EventObject->maskDestinationAddress($Filter->getNetmask))
{
New code part:
if (&maskaddress($Filter->getIpAddress,
$Filter->getNetmask) ==
&maskaddress($EventObject->getDestinationAddress,
$Filter->getNetmask)) {