OSDN Git Service

The call to DNSServiceRegistrationCreate in postmaster.c does incorrect
authorNeil Conway <neilc@samurai.com>
Sat, 18 Mar 2006 22:09:58 +0000 (22:09 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 18 Mar 2006 22:09:58 +0000 (22:09 +0000)
commita5dba023593e208dcd9d128d4aa656177f15753e
treea6ecb8030a60e1f101c5127a807f7e5dfe4f057a
parentb3358e2642d397e5e1d25ceade09c0749623e3a1
The call to DNSServiceRegistrationCreate in postc 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
src/backend/postmaster/postmaster.c