Thread: Bonjour registration on Intel Macs is broken

Bonjour registration on Intel Macs is broken

From
Ashley Clark
Date:
The call to DNSServiceRegistrationCreate in postmaster.c does incorrect byte-swapping on the port number which causes the Bonjour registration call to fail on Intel Macs.

This patch uses htons() instead of htonl() and fixes this bug.


Ashley Clark


Re: [PATCHES] Bonjour registration on Intel Macs is broken

From
Neil Conway
Date:
On Sat, 2006-03-18 at 15:35 -0600, Ashley Clark wrote:
> The call to DNSServiceRegistrationCreate in postmaster.c does
> incorrect byte-swapping on the port number which causes the Bonjour
> registration call to fail on Intel Macs.

Thanks for the patch -- applied to HEAD and back branches, back to 7.4.

-Neil