On Fri, 2005-05-27 at 03:00, Vance Shipley wrote:

> }  So if the table was indexed by a single integer value,
> }  you could retrieve this using
> }  
> }      long intIndex = *ti->indexes->val.integer;
> }  
> }  (but don't forget to check for null pointers first!)

> If the request made it into my table_data handler wouldn't it 
> have to have ti->indexes set?  It couldn't be NULL could it?

It *shouldn't* - no.  And of course there are no such things
as bugs in computer code. Are ya feeling lucky, punk?  Are ya?
> 
> And if any of these could be NULL how would I handle that situation?

Log an error and return.
It's either that, or the SNMP agent crashes - your choice  :-)


Dave

[It never ceases to amaze me how trusting some people can be!]



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to