Incomplete test of getaddrinfo() return value could lead to incorrect exception for Windows Inet 6

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • Environment:

      Windows

    • b115

      The return value 'error' should be tested for non-zero before the test at line 134 of Inet6AddressImpl.c is performed:

      132 error = getaddrinfo(hostname, NULL, &hints, &res);
      133
      134 if (WSAGetLastError() == WSATRY_AGAIN) {

            Assignee:
            Brian Burkhalter
            Reporter:
            Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: