> I noticed a problem when looking at the netSnmpHostsTable_handler()
> function.
> If multiple varbinds for different instances are specified in the set
> request, the positioning of the initialization of the suffix and
> suffix_len variables will cause problems
> for the commitInfo and undoInfo structure processing.
> These variables are currently initialized outside the for loop in the
> current CVS code base.
I suspect that this problem stems from the fact that this module
was written using the 5.0.x version of the iterator handler, which
only processed one request varbind at a time.
So the for loop only ever contained one entry.
This also made the distinction between "request" and "requests"
somewhat academic.
With the latest 5.1 version of the iterator, these assumptions
are no longer true, leading to the problems you mention.
I've updated the CVS code with the change you suggested.
Dave
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
|