Re: Problem with sprint_realloc_iteger()

This is a discussion on Re: Problem with sprint_realloc_iteger() within the SNMP Users forums, part of the Networking and Network Related category; On Wed, 2006-03-15 at 12:11 +0530, Rashmi M Bangera wrote: > The problem is, when i use ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-15-2006
Dave Shield
 
Posts: n/a
Default Re: Problem with sprint_realloc_iteger()

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=...720&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0