On Tue, 28 Sep 2004 08:54:57 -0700 Jeff wrote: JJ> The bug report contains a code snippet that itself contains a bug. The JJ> second code snippet: JJ> len = sizeof(buf); JJ> read_config_read_octet_string(str, (u_char**)&buf, &len); JJ> snmp_log(LOG_INFO, "len:%d, buf:%s\n", len, buf); JJ> JJ> The second param to read_config_read_octet_string should be a pointer to JJ> a pointer to the buffer. In this case it is just passing in a pointer JJ> to the buffer. In other words, not enough redirection.
Ahhh, the joys of C coding! Good eye, Jeff! -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users