[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-990070 ] netsnmp_register_mib() performs callback on an error
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2004-08-23 8:56:22
Message-ID: E1BzAco-0004L4-00 () sc8-sf-web3 ! sourceforge ! net
[Download RAW message or body]

Bugs item #990070, was opened at 2004-07-13 12:00
Message generated for change (Comment added) made by dts12
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=990070&group_id=12694

Category: agent
Group: linux
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: netsnmp_register_mib() performs callback on an error

Initial Comment:
I am using NET-SNMP-5.1.1

When a particular OID is registered with the Agent using 
the API netsnmp_register_mib() for the second time, 
unwanted OIDs are getting registered with the Agent.

When the same OID is registered with the Agent, 
netsnmp_subtree_load() is returned error in 
netsnmp_register_mib(). 

Callbacks should not have performed when an error is 
occured.  This can be done by modifying the parameter 
perform_callback to false.  Then the REGISTER message 
will not be sent to the Agent. 

FileName: agent_registry.c
Function: netsnmp_register_mib()
Line Number: 632

Code snippet with the fix:
===================
} else if (res == MIB_DUPLICATE_REGISTRATION ||
               res == MIB_REGISTRATION_FAILED) {
        netsnmp_subtree_free(subtree);
        perform_callback = 0;/* Do not perform the 
callback */
}


----------------------------------------------------------------------

Comment By: Dave Shield (dts12)
Date: 2004-08-23 09:56

Message:
Logged In: YES 
user_id=88893

Thanks for the bug report!  We've fixed the problem in the
main development tree, so it should be fixed in the 5.2 release
of the net-snmp package.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=990070&group_id=12694


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic