Coverity reports the following problems in the find_host()
function in rpc.statd:
1006368 Uninitialized pointer read 1018506 Double free 1305590 Resource leak 1009293 Unchecked return value from library 1194246 Wrong size argument
This patch addresses the first three problems by initializing
the ai1 and ai2 pointers to NULL at the top of the function,
and setting ai2 back to NULL after it is freed at the bottom
of the loop. Setting these to NULL when getaddrinfo() fails
should no longer be needed.
The last two problems are addressed by some tweaks to the
status file extend code.