]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r298451,r298452,r298507,r298750:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 May 2016 00:14:50 +0000 (00:14 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 May 2016 00:14:50 +0000 (00:14 +0000)
commit6e8126b376f833a4714f727735f5f48c9805e9fd
tree28dcac46a1ff8dcec3ccc3b4f81a50a2956889d0
parentd71d91b3f552e5c930c9fe6d44bddd589374547e
MFC r298451,r298452,r298507,r298750:

r298451:

Don't use `entry` after free in the "already in lists" case

Return with 0 as it isn't an error.

CID: 1006085
Obtained from: Isilon OneFS (part of r493633)

r298452:

Don't try to free `string` (stack allocated char[])

Fix minor style with warnx call while in the neighborhood

CID: 1009683

r298507:

Fix looking for "UTC" at start of ptr by using strnmp instead of improperly
unrolled equivalent

CID: 1347118

r298750:

Use a better idiom for finding UTC prefixed timezones

Instead of copy-pasting the string literal for "UTC" 3 times and using
strlen, use a static char[3] buffer and sizeof(..).

git-svn-id: svn://svn.freebsd.org/base/stable/10@299016 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c