mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03: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:
@ -37,7 +37,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.475.2.3 2006/02/01 00:32:05 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.475.2.4 2006/03/18 22:10:11 neilc Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
*
|
*
|
||||||
@ -771,7 +771,7 @@ PostmasterMain(int argc, char *argv[])
|
|||||||
DNSServiceRegistrationCreate(bonjour_name,
|
DNSServiceRegistrationCreate(bonjour_name,
|
||||||
"_postgresql._tcp.",
|
"_postgresql._tcp.",
|
||||||
"",
|
"",
|
||||||
htonl(PostPortNumber),
|
htons(PostPortNumber),
|
||||||
"",
|
"",
|
||||||
(DNSServiceRegistrationReply) reg_reply,
|
(DNSServiceRegistrationReply) reg_reply,
|
||||||
NULL);
|
NULL);
|
||||||
|
Reference in New Issue
Block a user