#2 mnwclient in loop consumes all memory

open
nobody
None
5
2004-02-06
2004-02-06
No

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)) {

Discussion


Log in to post a comment.