[AGENT++] segfault in mib.cpp when modifying SNMP-NOTIFICATION-MIB rowStatus
Ed Latimer
multisnmp at gmail.com
Fri Jan 4 15:17:29 CET 2013
Hi,
A segfault occurs on line 2347 of mib.cpp when an external manager tries to
change the rowStatus of an entry in the SNMP-NOTIFICATION-MIB
snmpNotifyTable or the rowStatus of an entry in the SNMP-TARGET-MIB
snmpTargetAddrTable or the snmpTargetParamsTable.
The segfault is occuring at the following line in
MibTable::prepare_set_request():
return perform_voting(o->my_row,
(int)((snmpRowStatus*)o)->get(),
nrs);
The entry in the snmpNotifyTable was created by the following code:
Agentpp::NotificationOriginator notificationOriginator;
const char * destinationString = "127.0.0.1/162";
UdpAddress destinationUdpAddr(destination);
notificationOriginator.add_v1_trap_destination(destinationUdpAddr,
destinationString, "tag", "community");
Thank you for your help.
More information about the AGENTPP
mailing list