Skip to content

uv_getaddrinfo on Windows always returns just a single address #4577

@ThadHouse

Description

@ThadHouse

#4254 changed the logic on getaddrinfo, and there is a flaw in the code. https://github.com/libuv/libuv/blob/v1.x/src/win/getaddrinfo.c#L193 is incorrect.

This assigns addrinfo_ptr to the next pointer in the list, and then assigns the next pointer of that to itself. This is incorrect, as this leaves the first addrinfo_ptr with no ai_next. This causes the first pointer to not have an ai_next, which to upstream consumers looks as through there is only a single address returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions