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

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

Commit: 375cb7cfb018ba69f874cd39d2c5f28e2de6301a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-10-19T17:26:43Z
Releases: 8.0.10
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