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

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

Commit: 8df0bcc69652974def6b12848a4639c7f0a81526
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-10-19T17:26:51Z
Releases: 7.4.15
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