send_notifications() has problem filtering for multiple sessions

"Lewis Adam-VNQM87" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Looking at version 5.5 of the net-snmp suite ... in
agent\mibgroup\notification\snmpNotifyTable.c, the function
send_notifications() has the lines [251 .. 255] :

   if (send && sess->paramName) {
      int filter = _checkFilter(sess->paramName, template_pdu);
      if (filter)
         send = 0;
   }

Because this is contained within the for loop which processes all target
sessions:
   for (sptr = sess; sptr; sptr = sptr->next)

I suspect the code should be:

   if (send && sptr->paramName) {
      int filter = _checkFilter(sptr->paramName, template_pdu);
      if (filter)
         send = 0;
   }

If not then I'm not sure what the code is trying to do.

Regards,
Adam.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.