Skip to content

Two fixes for mdns#92

Closed
mhei wants to merge 2 commits into
cminyard:masterfrom
mhei:fix-mdns
Closed

Two fixes for mdns#92
mhei wants to merge 2 commits into
cminyard:masterfrom
mhei:fix-mdns

Conversation

@mhei

@mhei mhei commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

This PR fixes two initialization typos and covers an edge-case when no service name shall be used when connecting via mdns.

mhei added 2 commits June 14, 2026 01:30
The default values should be loaded into the correct variables.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Calling e.g.
  gensiot 'mdns(type=_iostream._tcp)'
i.e. without a specific name after, should be possible and according
to the documentation it should give you the first enumerated service.

However, from code perspective, mstr is not NULL in this case but
has zero length. So add an additional check for this, otherwise
the name is set to zero-length string too which prevents later
a correct comparision.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
@cminyard

Copy link
Copy Markdown
Owner

Merged, thank you.

@cminyard cminyard closed this Jun 14, 2026
@mhei mhei deleted the fix-mdns branch June 14, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants