]> granicus.if.org Git - postgresql/commit
The call to DNSServiceRegistrationCreate in postmaster.c does incorrect
authorNeil Conway <neilc@samurai.com>
Sat, 18 Mar 2006 22:10:44 +0000 (22:10 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 18 Mar 2006 22:10:44 +0000 (22:10 +0000)
commitefef460028adb000cede3aec7efaa06e65ff89e1
tree58a2c73ce1216c00a9d410ed36f37fd6f5a36589
parentecd635c7551332cc8e5e801a9c8cbe9b960e8835
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
src/backend/postmaster/postmaster.c