I have written an application (using version 4.2.5) that creates pdu
(this particular one is a trap) and fires if off to another application
using the snmp_sess_send command.
In at least one case (destination ip was 0.0.0.0) the snmp_sess_send
command failed. The pdu was not freed up and this resulted in a memory
leak.
I am changinging the code to something like this
Status = snmp_sess_send(sessp, pdu);
If(status ==0){\\snmp_sess_send returns 0 on failure
snmp_free_pdu(pdu);
}
My question is whether there is a condition where snmp_sess_send fails
(returns 0) but the pdu is all ready freed up by snmp_sess_send?
Thanks
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders