diff options
author | Neil Conway <neilc@samurai.com> | 2006-03-18 22:10:44 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2006-03-18 22:10:44 +0000 |
commit | efef460028adb000cede3aec7efaa06e65ff89e1 (patch) | |
tree | 58a2c73ce1216c00a9d410ed36f37fd6f5a36589 /src | |
parent | ecd635c7551332cc8e5e801a9c8cbe9b960e8835 (diff) | |
download | postgresql-efef460028adb000cede3aec7efaa06e65ff89e1.tar.gz postgresql-efef460028adb000cede3aec7efaa06e65ff89e1.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 8924649345a..7efba17bf36 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.347.2.2 2004/02/23 20:46:16 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.347.2.3 2006/03/18 22:10:44 neilc Exp $ * * NOTES * @@ -782,7 +782,7 @@ PostmasterMain(int argc, char *argv[]) DNSServiceRegistrationCreate(rendezvous_name, "_postgresql._tcp.", "", - htonl(PostPortNumber), + htons(PostPortNumber), "", (DNSServiceRegistrationReply) reg_reply, NULL); |