On Thu, 2005-05-26 at 22:51, Vance Shipley wrote:
> On Thu, May 26, 2005 at 09:00:08AM +0100, Dave Shield wrote:
> }
> } (but don't forget to check for null pointers first!)
>
> Speaking of which ...
>
> With the table_data helper can I asume that when my handler
> is called for a GET request that it has validated the index?
Yes.
> Is the following test unnecessary?
>
> switch (reqinfo->mode) {
> case MODE_GET:
> for (request = requests; request; request = request->next) {
> if ((data = netsnmp_extract_table_row_data(request)) == NULL )
> return SNMP_ERR_GENERR;
Strictly speaking, probably yes.
In practise, no - see my other response!
Are you *really* that tight on space that a few extra bytes is
going to make a difference?
Dave
-------------------------------------------------------
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