On Wed, 2006-03-15 at 12:11 +0530, Rashmi M Bangera wrote:
> The problem is, when i use snmptable command, the code fails at
> sprintf() statement in the sprint_realloc_integer() function.
>
> case MODE_GET:
> switch (table_info->colnum) {
> case COLUMN_DOT3STATSINDEX:
> {
> long *index;
> size_t len;
> index = getIndex(data_context,&len);
And what value does 'index' receive?
There's no error checking here, and without seeing the
'getIndex' routine, it's impossible to tell what it
might be doing.
I would definitely suggest having some debugging code
within the getIndex routine, so you know exactly what
values it is returning (for both 'index' and 'len').
Dave
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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