Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dns: fix empty elem in result array #3696

Closed
wants to merge 1 commit into from
Closed

Commits on Nov 6, 2015

  1. dns: fix empty elem in result array

    When getaddrinfo linked-list results contain entries other than AF_INET
    and AF_INET6, the resulting v8::Array will contain undefined value.
    That's because initialization of v8::Array pre-allocate entries for all
    linked-list nodes, but we may actually some of them after the 2 while
    loops.
    Junliang Yan committed Nov 6, 2015
    Configuration menu
    Copy the full SHA
    4546ce6 View commit details
    Browse the repository at this point in the history