Hi!

Probably problem in function int check_getnext_results (netsnmp_agent_session 
*asp) from snmp_agent.c (a line 2798).
There is no check of the status of request. If the status of request is 
erroneous, function check_getnext_results all can return 1 (request GETNEXT 
correct).
It is necessary to add check:
for (i = 0; i <= old_treecache_num; i) {
       for (request = old_treecache [i].requests_begin; request;
            request = request-> next) {
            if (request-> status! = SNMP_ERR_NOERROR) {
              DEBUGMSGTL (("check_getnext_results",
                "request %d has error status: %d\n",
                request-> index, request-> status));
              continue;
            }
            ...
       }
}



------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to