Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8026806

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None
    • 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) {

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

              Created:
              Updated:
              Resolved: