freebsd-nq/usr.sbin/bsnmpd
Enji Cooper 5413861b16 Use a consistent errno save/restore pattern before running strtoul
- Save errno
- Set errno to 0
- Call strtoul
- Test errno (optional, but many calls to strtoul did this afterwards)

Some of the code was setting errno = 0 after calling strtoul, not setting
errno = 0, or setting errno to saved_errno after the call, but before the
test. These all have unwanted behavioral side-effects, depending on the
initial value of errno and whether or not the input to strtoul was correct
or incorrect.

MFC after: 3 weeks
Sponsored by: EMC / Isilon Storage Division
2016-05-14 23:22:38 +00:00
..
bsnmpd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
gensnmptree Add META_MODE support. 2015-06-13 19:20:56 +00:00
modules MFH 2016-03-02 16:14:46 +00:00
tools Use a consistent errno save/restore pattern before running strtoul 2016-05-14 23:22:38 +00:00
Makefile
Makefile.inc Add a bsnmp package 2015-03-18 13:01:09 +00:00