On Tue, 2006-02-21 at 12:14 +0100, Fernández Piñas, David wrote:
>  I have seen at table_iterator.c the next lines of code in
>  function netsnmp_table_iterator_helper_handler:
> 
> table_info = netsnmp_extract_table_info(request);
> if (table_info->colnum < tbl_info->min_column - 1) {
> 
> Should it be checked whether table_info is NULL before
> executing if statement?

It would probably be sensible, yes - even if only to log an error.


>  Should table_info ever be NULL?

No.
'table_info' holds the information about the basic structure
of the table, as provided when the table was first registered.
If this is NULL, then the table processing will not work.

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to