Niels Baggesen wrote:
> The attached patch is a simple fix for this bug, just zeroing the
> avail field when it would go negative.
> 
> A better fix, after 5.7.2, would be to allow the negative value to
> pass through by changing the avail field from unsigned to signed.
> 
> The MIB declares the object as signed already.

I'd argue for an additional comment in the code similar to the explanation in 
your mail.


+Thomas

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to