diff options
author | Neil Conway <neilc@samurai.com> | 2006-03-18 22:10:14 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2006-03-18 22:10:14 +0000 |
commit | a6e40d9f42766ec689daf5d50246dec5bb8ca3da (patch) | |
tree | 131035af8e8d50f56241af87289a835fcd8de7cd /src | |
parent | ea8eeb4ca7cd1a699d4104f85867a804799b483b (diff) | |
download | postgresql-a6e40d9f42766ec689daf5d50246dec5bb8ca3da.tar.gz postgresql-a6e40d9f42766ec689daf5d50246dec5bb8ca3da.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 ae92ee4b2eb..0cf734fff72 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.443.4.6 2006/02/01 00:47:02 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.443.4.7 2006/03/18 22:10:14 neilc Exp $ * * NOTES * @@ -760,7 +760,7 @@ PostmasterMain(int argc, char *argv[]) DNSServiceRegistrationCreate(rendezvous_name, "_postgresql._tcp.", "", - htonl(PostPortNumber), + htons(PostPortNumber), "", (DNSServiceRegistrationReply) reg_reply, NULL); |