Thread: pgsql: The call to DNSServiceRegistrationCreate in postmaster.c does

pgsql: The call to DNSServiceRegistrationCreate in postmaster.c does

From
neilc@postgresql.org (Neil Conway)
Date:
Log Message:
-----------
The call to DNSServiceRegistrationCreate in postmaster.c does incorrect
byte-swapping on the port number which causes the call to fail on Intel
Macs.

This patch uses htons() instead of htonl() and fixes this bug.

Ashley Clark

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/postmaster:
        postmaster.c (r1.347.2.2 -> r1.347.2.3)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c.diff?r1=1.347.2.2&r2=1.347.2.3)