mirror of
https://github.com/postgres/postgres.git
synced 2026-04-11 20:16:33 -04:00
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
This commit is contained in:
parent
ea8eeb4ca7
commit
a6e40d9f42
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue