freebsd-dev/usr.sbin/rpc.statd
Don Lewis 010e93758f Set ai2 to NULL in in find_host() before the loop and after calling
freeaddrinfo() on it to indicate that it doesn't point to a valid
addrinfo list.  This fixes this Coverity issues:
	1006368 Uninitialized pointer read
	1018506 Double free
	1305590 Resource leak
that can be triggered in the hp->hostname[0] != '\0' case.

Don't treat a character as a boolean.

Fix these Coverity issues:
	1009293 Unchecked return value from library
	1194246 Wrong size argument
by tweaking the status file extend code.

Reported by:	Coverity
CID:		1006368, 1018506, 1305590, 1009293, 1194246
Reviewed by:	rmacklem
Feedback from:	hrs
MFC after:	1 week
Differential Revision:	D6398
2016-05-16 23:29:04 +00:00
..
file.c Set ai2 to NULL in in find_host() before the loop and after calling 2016-05-16 23:29:04 +00:00
Makefile Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
procs.c
rpc.statd.8 multiple: Remove 3rd clause from BSD license where approved by the 2014-03-14 03:07:51 +00:00
statd.c Fix type mismatches for malloc(3) and Co. 2015-12-29 11:24:41 +00:00
statd.h
test.c