Skip to content

Backport "Merge PR #7133: FIX(server): Handle WinAPI objects lifetime properly in Zeroconf" to 1.5.x#7208

Draft
Hartmnt wants to merge 2 commits into
1.5.xfrom
backport/1.5.x/pr-7133
Draft

Backport "Merge PR #7133: FIX(server): Handle WinAPI objects lifetime properly in Zeroconf" to 1.5.x#7208
Hartmnt wants to merge 2 commits into
1.5.xfrom
backport/1.5.x/pr-7133

Conversation

@Hartmnt
Copy link
Copy Markdown
Member

@Hartmnt Hartmnt commented May 21, 2026

Backport of #7133

Recently we received multiple reports of random server crashes.

Turns out DnsServiceDeRegister(), more specifically svcRegDeregMulticast(), now reads the content of the DNS_SERVICE_INSTANCE object that is indirectly passed to it.
I've confirmed this by comparing dnsapi.dll version 10.0.26100.7920 to version 10.0.10240.16384.

This commit almost completely refactors the Windows-specific code making it more efficient and readable.
@Hartmnt Hartmnt marked this pull request as draft May 21, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants