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

Solaris SocketImpl methods set localport field using wrong macro

    Details

    • Subcomponent:
    • Resolved In Build:
      1.0beta2
    • CPU:
      sparc
    • OS:
      solaris_2.4
    • Verification:
      Not verified

      Description

      [pgt, 11/30/95]

      In java/src/solaris/java/runtime/socket.c, the methods set the
      localport field using the htons macro to convert the result of getsockname(2).
      This is incorrect.
      getsockname(2) returns sin_port in network-byte-order, and the correct
      macro to use is ntohs for converting back to host-byte-order.

        Attachments

          Activity

            People

            • Assignee:
              tlindholsunw Timothy Lindholm (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: