Bart Van Assche wrote: > On Thu, Aug 6, 2009 at 12:02 PM, > [email protected]<[email protected]> wrote: >> The 1 remaining valgrind error (reproduced at the end in full) is >> complaining about >> >> "socketcall.sendmsg(msg.msg_control) points to uninitialised byte(s)". > > Try to insert the statements "memset(&cmsg, 0, sizeof(cmsg)); > memset(&m, 0, sizeof(m));" just after the declaration of cmsg and m > and before the initialization of these structures starts. If this > makes the above message disappear, please post this change as a patch > on the Net-SNMP patch tracker.
Hi Bart, I inserted the memsets - and the valgrind error disapeared. Thanks for that - I will post this change on the patch tracker. I will also re-test my code again, and try and get some more code to be hit, as you suggested. Many thanks, Craig __________ Information from ESET Smart Security, version of virus signature database 4311 (20090806) __________ The message was checked by ESET Smart Security. http://www.eset.com ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
