Work around reported problem that AIX's getaddrinfo() doesn't seem to zero

Tom Lane <tgl@sss.pgh.pa.us>

Commit: dbb397f30f30829e99ccd9ef0529a2e1d9b98467
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-10-19T17:26:32Z
Releases: 8.2.0
Work around reported problem that AIX's getaddrinfo() doesn't seem to zero
sin_port in the returned IP address struct when servname is NULL.  This has
been observed to cause failure to bind the stats collection socket, and
could perhaps cause other issues too.  Per reports from Brad Nicholson
and Chris Browne.

Files

PathChange+/−
src/backend/libpq/ip.c modified +10 −1